public ActionResult ForgotPassword(ForgotPasswordModel model) { ForgotPassword forgotUser = new ForgotPassword(); var confirmSend = forgotUser.SendEmail(model.Email); //forgotUser.SendEmail(fm.Email); if (confirmSend == false) { return(View(model)); } Session[nameof(User)] = new ForgotPasswordModel(model.Email); return(RedirectToAction("ResetPassword", "Account")); }