Example #1
0
 public ActionResult ChangePassword(Usuario usuario)
 {
     try
     {
         _usuariosService.ChangePassword(usuario);
         return(Ok());
     }
     catch (NotFoundException)
     {
         return(NotFound("Usuário não encontrado!"));
     }
     catch (Exception e)
     {
         return(BadRequest(_usuariosService.GetErrorAuthMessage(e.Message)));
     }
 }