Esempio n. 1
0
 public ActionResult SendRecoveryCode(string userName)
 {
     try
     {
         _usuariosService.SendRecoveryCode(userName);
         return(Ok());
     }
     catch (NotFoundException)
     {
         return(NotFound("Usuário não encontrado!"));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }