Ejemplo n.º 1
0
        public async Task <IEnumerable <SuggestionResource> > GetAllAsync(int UserId)
        {
            var suggestions = await _suggestionService.ListByUserIdAsync(UserId);

            var resources = _mapper
                            .Map <IEnumerable <Suggestion>, IEnumerable <SuggestionResource> >(suggestions);

            return(resources);
        }