public async Task <IActionResult> ForgotPassword([Bind("Email")] ForgotPassword forgotPassword, CancellationToken cancellationToken) { if (ModelState.IsValid) { if (await _accountManagementService.ForgotPassword(forgotPassword)) { TempData["SendEmail"] = "SendEmail"; } else { CheckUnexpectedErrors(); return(View(forgotPassword)); } } return(RedirectToAction("ForgotPassword")); }