public async Task<IdentityResult> ChangePassword(ChangeUserPasswordModel changeUserPasswordModel) { var result = await userManager.ChangePasswordAsync(changeUserPasswordModel.UserId, changeUserPasswordModel.CurrentPassword, changeUserPasswordModel.NewPassword); return result; }
public async Task<IHttpActionResult> ChangePassword(ChangeUserPasswordModel changeUserPasswordModel) { var result = await repo.ChangePassword(changeUserPasswordModel); var errorResult = GetErrorResult(result); if (errorResult != null) { return errorResult; } return Ok(); }