Пример #1
0
        public async Task <IEnumerable <IngredientSuggestion> > GetTaskSuggestionsAsync(int userId)
        {
            IEnumerable <ToDoTask> tasks = await _ingredientsRepository.GetTaskSuggestionsAsync(userId);

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

            result = result.OrderBy(x => x.Group);

            return(result);
        }