Created
April 17, 2015 09:38
-
-
Save donbonifacio/560ffc4afa6b3a883d5d to your computer and use it in GitHub Desktop.
Common gateway usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn save! | |
"Persists an account" | |
[account] | |
(common/gateway-call :account-gateway :save! account)) | |
(defn find-by-id | |
"Find account by given id" | |
[id] | |
(common/gateway-call :account-gateway :find-by-id id)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment