public async Task <JsonResult> ForgotPassword(string email) { var user = await _userProvider.GetUserByEmailAsync(email); if (user != null) { string callbackUrl = Url.Action("ResetPassword", "Account", null, Request.Url.Scheme); await _userProvider.SendRecoverMailToUser(user.Id, callbackUrl); } return(Json(new { IsEmailExisting = user != null })); }