public void AddCar(string newMake, string newModel, string newYear) { Car newCar = new Car(); newCar.NewCar(newMake, newModel, newYear); ParkingSpots.Add(newCar); }
public bool AddParkingSpot(ParkingSpot parkingSpot) { if (parkingSpot == null) { throw new ArgumentNullException("parkingSpot"); } if (FindParkingSpot(parkingSpot.ID) == null) { ParkingSpots.Add(parkingSpot); return(true); } return(false); }
public void ParkInSpot(ParkingSpot parkingSpot) => ParkingSpots.Add(parkingSpot);