public async Task <IActionResult> ForgetPassword(string email) { if (string.IsNullOrEmpty(email)) { return(NotFound()); } var result = await _accountAppService.ForgetPassword(email); if (result) { return(Ok(new Response { Message = "an email send you to reset password" })); // 200 } return(BadRequest(new Response { Message = "your email didn't submit in the websit" })); // 400 }