示例#1
0
        static void PrintOrdersOfStore(Store store)
        {
            List <Order> MyList = _sql.ReadOrders1(store).Cast <Order>().ToList();

            foreach (var order in MyList)
            {
                System.Console.WriteLine(order);
            }
            Console.WriteLine("Please choose the order you'd like to view");
            int   choice      = int.Parse(Console.ReadLine());
            Order OrderChoice = MyList[choice];

            List <APizzaModel> LastList = _sql.ReadOrderPizzas(OrderChoice).Cast <APizzaModel>().ToList();

            foreach (var pizza in LastList)
            {
                System.Console.WriteLine(pizza);
            }
        }