Esempio n. 1
0
        private void AddMealToDirectory()
        {
            Console.Clear();
            Console.WriteLine("Enter the new meal name:");
            string mealName = Console.ReadLine();

            Console.WriteLine("Enter the new meal number:");
            int mealNum = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Enter the new meal description:");
            string description = Console.ReadLine();

            Console.WriteLine("Enter the new meal ingredients:");
            string ingredients = Console.ReadLine();

            Console.WriteLine("Enter the new meal price:");
            double      mealPrice  = Convert.ToDouble(Console.ReadLine());
            MenuContent newContent = new MenuContent(mealNum, mealName, description, ingredients, mealPrice);

            _repo.AddContentToDirectory(newContent);
        }
Esempio n. 2
0
 public void DisplayContent(MenuContent item)
 {
     Console.WriteLine($"{item.MealNum} - {item.MealName} | {item.Description} \n Ingredients:({item.Ingredients}) \n Price: {item.MealPrice}");
 }