示例#1
0
        public static void CheckOut(bool IsCheckout)
        {
            if (IsCheckout)
            {
                WriteToConsole.ItemSummary();
                PaymentTypeController.GetPayment();
                WriteToConsole.PrintReceipt();

                if (WriteToConsole.ShopAgain() == "y")
                {
                    ShoppingCart.Cart.Clear();
                    Console.Clear();
                    InitApp();
                }
                else
                {
                    WriteToConsole.GoodBye();
                }
            }
            else
            {
                Console.Clear();
                InitApp();
            }
        }