Esempio n. 1
0
        public async Task <IEnumerable <ApiComment> > GetUserComments(int id, int page = 1)
        {
            IEnumerable <UserComment> comments = await _repository.GetUserCommentsAsync(id, page);

            return(comments.Select(x => new ApiComment(x)));
        }