Exemple #1
0
        public HttpResponseMessage GetCommentsByPost(int id, string lang)
        {
            List <CommentDto> comments = postsManager.GetComments(id);
            List <Comment>    result   = comments.ConvertAll(comment => new Comment(comment));

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }