Exemple #1
0
 public HttpResponseMessage Update(ResetUpdateRequest req)
 {
     if (req == null)
     {
         ModelState.AddModelError("", "You did not add any body data!");
     }
     if (!ModelState.IsValid)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
     }
     passwordResetService.Update(req);
     return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse()));
 }