public IResult ChangePassword([FromBody] ChangePassword changePassword) { var user = _userService.ChangePassword(changePassword.OldPassword, changePassword.NewPassword); return(user); }
public bool ChangePassword(ContextModel context, ChangePasswordViewModel changePasswordInfo) { return(_userManagerService.ChangePassword(context.User.ID, changePasswordInfo.OldPassword, changePasswordInfo.NewPassword)); }