Beispiel #1
0
        public async Task <IEnumerable <Menu> > ListByRecipeId(int recipeId)
        {
            var menuRecipes = await _menuRecipeRepository.ListByRecipeIdAsync(recipeId);

            var menus = menuRecipes.Select(p => p.Menu).ToList();

            return(menus);
        }
Beispiel #2
0
 public async Task <IEnumerable <MenuRecipe> > ListByRecipeIdAsync(int recipeId)
 {
     return(await _menuRecipeRepository.ListByRecipeIdAsync(recipeId));
 }