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); }
// 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!!"); } }
// Create public void AddMenuToList(Menu_Repo food) { _listOfMenu.Add(food); }
// View all Menu private void DisplayAllMenu() { List <Menu> listofList = Menu_Repo.MenuList(); }