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)); }
public void EditGarage(Garage garage) { _garageRepository.Update(garage); _memoryCache.Remove(_allGaragesKey); }