Skip to content

Instantly share code, notes, and snippets.

@jagregory
Created June 29, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagregory/1054729 to your computer and use it in GitHub Desktop.
Save jagregory/1054729 to your computer and use it in GitHub Desktop.
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