Пример #1
0
        public void SeedItemList()
        {
            Menu burger        = new Menu("Bread,Lettuce,Beef Patties, Onion");
            Menu chickenNugget = new Menu("fried chicken, Cheese, onoin");

            Menu_Repo.AddMenuToList(burger);
            Menu_Repo.AddMenuToList(chickenNugget);
        }
Пример #2
0
        // Delete Existing Menu
        private void DeleteExistingMenu()
        {
            DisplayAllMenu();
            Console.WriteLine("Select which item has to be delete?");
            string userInput = Console.ReadLine();
            bool   deleted   = Menu_Repo.RemoveMenuFromList();

            if (deleted)
            {
                Console.WriteLine("Menu item is deleted");
            }
            else
            {
                Console.WriteLine("Something went wrong, Try agin Please!!");
            }
        }
Пример #3
0
 // Create
 public void AddMenuToList(Menu_Repo food)
 {
     _listOfMenu.Add(food);
 }
Пример #4
0
 // View all Menu
 private void DisplayAllMenu()
 {
     List <Menu> listofList = Menu_Repo.MenuList();
 }