/// <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); }
private bool IsCarInLot(string token) { return(OccupiedLots.ContainsKey(token)); }