示例#1
0
        static void PrintMenus()
        {
            Console.Write("Enter your selections: \na:Select store\nb:List orders by store\nc:List orders\n");
            string userInput = Console.ReadLine();

            switch (userInput)
            {
            case "a":
                _sql.ProcessPizza();
                break;

            case "b":
                // diplay oders for each store
                Console.WriteLine("Type store name: ");
                _sql.OrdersByStores(Console.ReadLine());
                break;

            case "c":
                // print all orders
                PrintAllOrders();
                break;
            }
        }