Esempio n. 1
0
        public static void DoTransactionAgain()
        {
            Console.Write(@"Thank you for shopping with us.

Would you like to do more transactions (y/n): ");

            string answer = Console.ReadLine().ToLower();

            while (!(answer.Equals("y") || answer.Equals("n")))
            {
                InvalidInputHandler.EraseInvalidInput(-1);
                answer = Console.ReadLine();
            }

            if (answer.Equals("y"))
            {
                Console.Clear();
                _cartManager.ResetList();
                ProductUI.ProductDisplay();
            }
            else if (answer.Equals("n"))
            {
                Environment.Exit(0);
            }
        }
Esempio n. 2
0
        public static void DisplayService(int serviceId = 0)
        {
            CartManager cartManager = new CartManager();

            Console.Clear();

            if (cartManager.RetrieveAll().Count > 0)
            {
                CartUI.CartDisplay();
            }

            ProductUI.ProductDisplay();
        }