Пример #1
0
        public IActionResult Get(Guid id)
        {
            var user = _userResource.Get(id);

            if (user == null)
            {
                return(NotFound());
            }

            return(Ok(user));
        }
Пример #2
0
 public IHttpContentResult <IEnumerable <UserDocument> > Get([FromUri] string email, [FromUri] string password)
 {
     return(Request.CreateContentResponse(resource.Get(email, password)));
 }