Esempio n. 1
0
        private void DeleteExistingMenuItems()
        {
            Console.Clear();

            SeeAllItems();

            Console.WriteLine("Please type the meal name you would like to delete (HumCar, Cheesers,  etc.)");
            string input = Console.ReadLine();

            bool wasDeleted = _contentRepo.DeleteMenuItems(input);

            if (wasDeleted)
            {
                Console.WriteLine("Menu item deleted!");
            }
            else
            {
                Console.WriteLine("Menu item could not be deleted");
            }
        }