Пример #1
0
 public bool ChangePassword(ChangePasswordRequest model)
 {
     if (_userRepository.AccountLogin(model.UserName, model.OldPassword))
     {
         if (model.NewPassword.Equals(model.ConfirmPassword))
         {
             return(_userRepository.ChangePassword(model.UserName, model.OldPassword, model.NewPassword));
         }
     }
     return(false);
 }