/// <summary>
 /// checking out the vehicle
 /// </summary>
 /// <param name="licensePlateID">of the vehicle</param>
 /// <returns>true if check out succeed, else false</returns>
 public bool CheckOut(string licensePlateID)
 {
     if (OccupiedLots.ContainsKey(licensePlateID))
     {
         OccupiedLots[licensePlateID].freeLot();
         OccupiedLots.Remove(licensePlateID);
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 private bool IsCarInLot(string token)
 {
     return(OccupiedLots.ContainsKey(token));
 }