Beispiel #1
0
        private void RemoveItemFromList()
        {
            Console.Clear();
            ListAllTheMenuItems();

            Console.WriteLine("Please enter the Menu Number of the Menu Item: ");
            int menuNumber = int.Parse(Console.ReadLine());


            bool successful = MenuRepository.RemoveProductBySpecifications(menuNumber);

            if (successful == true)
            {
                Console.WriteLine("Item Successfully Removed");
            }
            else
            {
                Console.WriteLine("Errrror!!!!");
            }

            Console.ReadLine();
        }