Created
June 29, 2011 19:43
-
-
Save jagregory/1054729 to your computer and use it in GitHub Desktop.
This file contains 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
public Response Post(string email) { | |
bus.publish(new CreateUserCommand(email)); | |
User newUser = repo.query(new FindUserByEmailAddress(email)); | |
return Response.created("/users/"+newUser.Id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment