public async Task <ActionResult> Excute() { var _context = new TGDDContext(); var forgotPassword = new ForgotPassword(); Customer customer = await forgotPassword.FindAccount(Username); if (customer != null) { MailClass mailClass = GetMailObjectForgotPassword(customer); await _mailService.SendMail(mailClass); return(Ok()); } return(BadRequest()); }