Exemplo n.º 1
0
 public IHttpActionResult GetUser(string email)
 {
     try
     {
         if (!string.IsNullOrWhiteSpace(email))
         {
             UserRepresentation user = _accountApplicationService.GetUserByEmail(email);
             return(Ok(user));
         }
         else
         {
             return(BadRequest("No email provided to GetUser"));
         }
     }
     catch (Exception exception)
     {
         return(InternalServerError());
     }
 }