private bool EmailIsValid(ResetPasswordViewModel model) { var response = new GetUserResponse(); response = _userService.GetUserByEmail(new GetUserRequest { Email = model.Email }); return response.IsSuccess; }
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); } }