private void NewMenuItem() { Console.WriteLine("What will be the Menu Number?"); int num = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Please give a name to the menu Item:"); string name = Console.ReadLine(); Console.WriteLine("Please give a short description of the Item"); string description = Console.ReadLine(); Console.WriteLine("Please add the ingredients for this Item"); string ingredients = Console.ReadLine(); Console.WriteLine("Please List the Price for this Item"); double price = Convert.ToDouble(Console.ReadLine()); MenuClasses newItem = new MenuClasses(num, name, description, ingredients, price); menuRepo.AddItemToMenu(newItem); InitialPrompt(); }
public void AddItemToMenu(MenuClasses item) { _MenuItems.Add(item); }