Ejemplo n.º 1
0
        public async Task <IEnumerable <IngredientSuggestion> > GetIngredientSuggestionsAsync(int userId)
        {
            IEnumerable <Ingredient> ingredients = await _ingredientsRepository.GetIngredientSuggestionsAsync(userId);

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

            return(result);
        }