Esempio n. 1
0
 public static void ShowAllOrders()
 {
     Console.WriteLine("History and status of orders: ");
     ConsoleManager.ShowOrdersOfUser(GetAllOrdersOfUser());
     Console.WriteLine("Please, type enter to continue...)");
     Console.ReadKey();
 }
Esempio n. 2
0
        public static void OrderOrCancelOrder()
        {
            Console.WriteLine("Do you approve your orders?");
            Console.WriteLine("All your orders: ");
            ConsoleManager.ShowOrdersOfUser(GetAllNewOrders());
            Console.WriteLine("1. Yes");
            Console.WriteLine("2. No");

            string choice = Console.ReadLine();

            switch (choice)
            {
            case "1":
                Checkout();
                break;

            case "2":
                MakeAllNewOrdersCanceled();
                break;

            default:
                Console.WriteLine("Please enter 1 or 2.");
                break;
            }
        }