Example #1
0
        private void RemoveAMenuItem()
        {
            Console.WriteLine("What is the meal number you would like to remove?");
            string numberAsString = Console.ReadLine();
            int    mealNumber     = int.Parse(numberAsString);

            _menuRepo.RemoveMenuItem(mealNumber);
        }
        public void RemoveMenuItem()
        {
            Console.WriteLine("Enter meal number here");
            string numberAsString = Console.ReadLine();
            int    number         = int.Parse(numberAsString);

            Console.WriteLine("Enter meal name here");
            string name = Console.ReadLine();

            Console.WriteLine("Enter meal description here");
            string description = Console.ReadLine();

            Console.WriteLine("Enter meal ingredients here");
            string ingredients = Console.ReadLine();

            Console.WriteLine("Enter cost of meal here");
            string  costAsString = Console.ReadLine();
            decimal cost         = decimal.Parse(costAsString);

            Menu newMenu = new Menu(number, name, description, ingredients, cost);

            _menuRepo.RemoveMenuItem(newMenu);
        }