コード例 #1
0
        private async Task <DishDTO> ConvertDish(Dish dish)
        {
            var allrecipes = await _recipe.GetRecipesForDish(dish.Id);

            return(new DishDTO()
            {
                Name = dish.Name,
                Type = dish.DishType,
                Recipes = allrecipes
            });
        }