public void AddScooter(DateTime registerDate, ScooterState state, Station station) { Scooter scooter = new Scooter(registerDate, state); Scooters.Add(scooter); if (scooter.IsStateAvailable(state)) { station.AddScooter(scooter); scooter.SetStation(station); } }
public void assignScooter(Scooter sc) { Scooters.Add(sc); }
public void AddScooter(Scooter scooter) { Scooters.Add(scooter); }