コード例 #1
0
        private void GetCafeContents()
        {
            Console.Clear();
            List <CafeContent> listOfMenu = _cafeRepo.GetCafeContents();

            foreach (var menuItem in listOfMenu)
            {
                Console.WriteLine($"Number: {menuItem.MealNumber}\n" +
                                  $"Name: {menuItem.MealName}\n" +
                                  $"Description: {menuItem.Description}\n" +
                                  $"Ingredients List:");
                foreach (var item in menuItem.ListOfIngredients)
                {
                    Console.WriteLine(item.IngredientName);
                }
                Console.WriteLine($"Price: ${menuItem.Price}\n");
            }
        }