public void Execute() { IParking whereToPark = parkingRepository.Find(parkingId); CarSubject carToPark = carRepository.Find(carId); whereToPark.SetCarToParking(carToPark); carToPark.IsParked = true; }
private void Initialize() { var parking = _parkingRepository.Find(_id); UpdateParkingSlots(parking); }