예제 #1
0
        private void CreateAndAddContentToOrder()
        {
            Menu content = new Menu();

            Console.Write("Please type in a meal number: ");
            string mealNumber = Console.ReadLine();

            content.MealNumber = int.Parse(mealNumber);

            Console.Write("Please enter a meal name: ");
            content.MealName = Console.ReadLine();

            Console.Write("Please enter a description: ");
            content.Description = Console.ReadLine();

            Console.Write("Please list ingredients: ");
            content.Ingredients = Console.ReadLine();

            Console.Write("Price: ");
            string price = Console.ReadLine();

            content.Price = decimal.Parse(price);


            _CafeRepo.AddContentToMenu(content);
        }