Пример #1
0
        private void AddMenuItem()
        {
            Menu newItem = new Menu();

            Console.Clear();
            Console.WriteLine("What do you want the new item's meal number to be?");
            newItem.MealNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("What will the name of the item be?");
            newItem.MealName = Console.ReadLine();
            Console.WriteLine("How will you describe this new item?");
            newItem.MealDescription = Console.ReadLine();
            Console.WriteLine("What are the item's ingredients?");
            newItem.IngredientsList = Console.ReadLine();
            Console.WriteLine("Finally, how much will this item cost?");
            newItem.MealPrice = decimal.Parse(Console.ReadLine());

            _repo.AddMealToList(newItem);
        }