Пример #1
0
        public ActionResult Create_Comment(string postId, Comment text)
        {
            var post = _postsService.Get(postId);

            if (post == null)
            {
                return(NotFound());
            }

            _postsService.CommentPost(postId, text.CommentText);

            return(NoContent());
        }