public bool CheckAvailOfLane(int LaneID, List <int> Hours) { BowlingLane lane = _bowlinglanes[LaneID]; bool Availability = true; for (int i = 0; i < Hours.Count; i++) { if (lane.GetStatus(Hours[i]) == Status.Occupied) { Availability = false; } } return(Availability); }
public Status GetStatus(int LaneID, int Hour) { BowlingLane lane = _bowlinglanes[LaneID]; return(lane.GetStatus(Hour)); }