internal async Task ChangePassword(ChangePasswordRest changePassword) { var user = await _userHelper.GetUserByEmailAsync(changePassword.Email); if (user == null) { throw new Exception("Email Not Exists"); } await _userHelper.ChangePasswordAsync(user, changePassword.OldPassword, changePassword.NewPassword); }
public async Task <IActionResult> ChangePassword(ChangePasswordRest changePassword) { await _acoountApplication.ChangePassword(changePassword); return(Ok()); }