public ActionResult forgotpassword(ForgotPasswordVM model) { try { if (ModelState.IsValid) { var result = accountManager.ProcessPasswordRecovery(model.Email); if (result != null) { return(RedirectToAction("forgotpasswordemailsent")); } ModelState.AddModelError("", "We do not see an account with that email address!"); return(View()); } } catch (Exception ex) { ModelState.AddModelError("", "Error in processing the your request"); } return(View(model)); }