Пример #1
0
        public Task <Comment> CommentPost(Guid id, Guid postid, NewComment newcomment)
        {
            Comment tempcomment = new Comment();

            tempcomment.CommenterId = newcomment.CommenterId;
            tempcomment.CommentId   = Guid.NewGuid();
            tempcomment.CommentText = newcomment.CommentText;

            return(_repository.CommentPost(id, postid, tempcomment));
        }
Пример #2
0
 public Task <Comment> CommentPost(Guid id, Guid postid, [FromBody] NewComment newcomment)
 {
     return(_processor.CommentPost(id, postid, newcomment));
 }