Пример #1
0
        public async Task <IEnumerable <CommentDto> > GetPostComments(int postId)
        {
            var post = await PostGenericFacade.GetAsync(postId);

            if (post == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            var comments = await CommentGenericFacade.GetPostCommentsAsync(postId);

            return(comments);
        }