示例#1
0
        private IEnumerable <Order> GetOrdersOfStatus(OrderStatus status)
        {
            List <Order> orders = new List <Order>();

            Seats.ForEach(x => orders.AddRange(x.Passenger.Orders.Where(y => y.Status == status)));
            return(orders);
        }