public List <Luggage> GetAllLuggages(string flightNo)
        {
            var result = new List <Luggage>();

            foreach (var luggage in luggages)
            {
                Passenger passenger = GetPassenger(luggage.ownerId);
                if (passenger != null)
                {
                    UpcomingFlight upcomingFlight = GetFlight(passenger.flightNo);
                    if (upcomingFlight.FlightNo == flightNo)
                    {
                        result.Add(luggage);
                    }
                }
            }
            return(result);
        }
        private AirportBelt SetBeltForLuggage(Luggage luggage, UpcomingFlight flight)
        {
            Passenger passenger = GetPassenger(luggage.ownerId);

            if (passenger != null)
            {
                UpcomingFlight upcomingFlight = GetFlight(passenger.flightNo);
                if (flight.FlightNo == upcomingFlight.FlightNo)
                {
                    switch (flight.Zone)
                    {
                    case "zoneA": return(GetBelt("beltA"));

                    case "zoneB": return(GetBelt("beltB"));

                    case "zoneC": return(GetBelt("beltC"));

                    default: throw new NotSupportedException();
                    }
                }
            }
            return(null);
        }
        private AirportBelt SetBeltForLuggage(Luggage luggage)
        {
            Passenger passenger = GetPassenger(luggage.ownerId);

            if (passenger != null)
            {
                UpcomingFlight flight = GetFlight(passenger.flightNo);
                if (flight != null)
                {
                    switch (flight.Zone)
                    {
                    case "zoneA": return(GetBelt("beltA"));

                    case "zoneB": return(GetBelt("beltB"));

                    case "zoneC": return(GetBelt("beltC"));

                    default:
                        break;
                    }
                }
            }
            return(null);
        }