Exemplo n.º 1
0
        public async Task <IEnumerable <IngredientSuggestion> > GetSuggestionsAsync(int recipeId, int userId)
        {
            IEnumerable <Ingredient> ingredients = await _ingredientsRepository.GetSuggestionsAsync(recipeId, userId);

            var result = ingredients.Select(x => _mapper.Map <IngredientSuggestion>(x));

            return(result);
        }