public IActionResult Get(Guid id) { var user = _userResource.Get(id); if (user == null) { return(NotFound()); } return(Ok(user)); }
public IHttpContentResult <IEnumerable <UserDocument> > Get([FromUri] string email, [FromUri] string password) { return(Request.CreateContentResponse(resource.Get(email, password))); }