예제 #1
0
 private bool EmailIsValid(ResetPasswordViewModel model)
 {
     var response = new GetUserResponse();
     response = _userService.GetUserByEmail(new GetUserRequest { Email = model.Email });
     return response.IsSuccess;
 }
예제 #2
0
 public ActionResult ValidateEmail(GetUserRequest request)
 {
     var response = new GetUserResponse();
     response = _userService.GetUserByEmail(new GetUserRequest { Email = request.Email });
     if (response.IsSuccess)
     {
         return Json(true, JsonRequestBehavior.AllowGet);
     }
     else
     {
         return Json(false, JsonRequestBehavior.AllowGet);
     }
 }