Exemplo n.º 1
0
 //---Functions---
 public void AddVehicleParking(ParkingSession ps)
 {
     if (!vehicleParkingList.Contains(ps))
     {
         vehicleParkingList.Add(ps);
     }
 }
Exemplo n.º 2
0
 // adds to the parksession list
 public void AddVehicleParking(ParkingSession ps)
 {
     if (!vehicleParkingList.Contains(ps))
     {
         vehicleParkingList.Add(ps);
     }
     else
     {
         Console.WriteLine("The Vehicle is already parked at the Carpark!");
     }
 }