Exemplo n.º 1
0
        /******** Menu Methods ******************************
        ****************************************************/

        private void AddMenuItem()
        {
            MenuItem newMenuItem = new MenuItem
            {
                Number      = MenuItemNumber(),
                Name        = MenuItemName(),
                Description = MenuItemDescription(),
                Price       = MenuItemPrice(),
                Ingredients = MenuItemIngredients()
            };

            _menuItemRepo.AddMenuItemToList(newMenuItem);
        }
Exemplo n.º 2
0
        private void AddMenuItem()
        {
            Console.Clear();
            Menu newMenuItem = new Menu();

            Console.WriteLine("What number should this be on the menu?");
            newMenuItem.MealNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("What is the name of the menu item?");
            newMenuItem.MealName = Console.ReadLine();
            Console.WriteLine("What is the description of the menu item?");
            newMenuItem.MealDescription = Console.ReadLine();
            newMenuItem.Ingredients     = AddIngredient();
            Console.WriteLine("What is the price of the menu item? (no $ sign)");
            newMenuItem.MealPrice = decimal.Parse(Console.ReadLine());
            _menuRepo.AddMenuItemToList(newMenuItem);
        }
Exemplo n.º 3
0
        private void AddItem()
        {
            Console.Clear();
            Menu newContent = new Menu();

            Console.WriteLine("What is the meal item number?");
            newContent.MealNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("\nWhat is the item's name?");
            newContent.MealName = Console.ReadLine();
            Console.WriteLine("\nWhat is the item's description?");
            newContent.MealDescription = Console.ReadLine();
            Console.WriteLine("\nWhat is the item's ingredients?");
            newContent.MealIngredients = Console.ReadLine();
            Console.WriteLine("\nWhat is the item's price?");
            newContent.MealPrice = decimal.Parse(Console.ReadLine());
            _menuRepo.AddMenuItemToList(newContent);
        }
Exemplo n.º 4
0
        private void AddMenuItem()
        {
            Menu newContent = new Menu();

            Console.WriteLine("Give this menu item a Meal Number");
            newContent.MealNumber = int.Parse(Console.ReadLine());

            Console.WriteLine("What is this meal's name?");
            newContent.MealName = Console.ReadLine();

            Console.WriteLine("Write the Meal Description");
            newContent.MealDescription = Console.ReadLine();

            Console.WriteLine("What ingredients are in this meal?");
            newContent.MealIngredients = Console.ReadLine();

            Console.WriteLine("What is the price for this meal?");
            newContent.MealPrice = decimal.Parse(Console.ReadLine());
            _menuRepo.AddMenuItemToList(newContent);
        }