Beispiel #1
0
        public bool changePassWord(tempService garage)
        {
            var gar = Get(garage.username);

            if (gar.password == garage.oldpassword)
            {
                gar.password = garage.newpassword;
            }
            else
            {
                return(false);
            }

            return(garageRepository.Update(gar));
        }
Beispiel #2
0
 public void EditGarage(Garage garage)
 {
     _garageRepository.Update(garage);
     _memoryCache.Remove(_allGaragesKey);
 }