示例#1
0
        static void RemovePizza(Order cart)
        {
            System.Console.WriteLine("- Delete a Pizza");
            DisplayCart3(cart);
            Starter.RemovePizzaMenu();

            int select;

            int.TryParse(Console.ReadLine(), out select);
            if (select == 99)
            {
                EditCart(cart);
            }
            cart.RemovePizzaAt(select); // TODO check if there are pizzas to delete
            EditCart(cart);
        }