public void SeedTheRepo() { MenuList cheeseburger = new MenuList(1, "Cheeseburger", "A burger with cheese", 3.50, "Buns, meat, cheese."); MenuList potatoChips = new MenuList(2, "Potato Chips", "Some chips from potatos", 1.75, "Potatos, chips, salt."); MenuList pizzaRolls = new MenuList(3, "Pizza Rolls", "Rolls of pizza", 2.50, "Pizza, rolls, sausage."); _repo.AddMenuChoice(cheeseburger); _repo.AddMenuChoice(potatoChips); _repo.AddMenuChoice(pizzaRolls); }
private void AddMenuItem() { Console.Clear(); Console.WriteLine("Enter Meal Number:"); int mealNumber = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter Meal Name:"); string mealName = Console.ReadLine(); Console.WriteLine("Enter Description of Meal:"); string mealDescription = Console.ReadLine(); Console.WriteLine("Enter Price of the Meal:"); double mealPrice = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Enter the Ingredients"); string mealIngredients = Console.ReadLine(); MenuList newMenuItem = new MenuList(mealNumber, mealName, mealDescription, mealPrice, mealIngredients); _repo.AddMenuChoice(newMenuItem); }