Exemple #1
0
 public HttpStatusCode ChangeForgottenPassword([FromBody] ForgotPasswordDTO model)
 {
     try
     {
         var result = _pass.ChangeForgottenPassword(model);
         if (result)
         {
             return(HttpStatusCode.OK);
         }
         else
         {
             return(HttpStatusCode.NotFound);
         }
     }
     catch (Exception ex)
     {
         return(HttpStatusCode.BadRequest);
     }
 }