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)); }
public Task <Comment> CommentPost(Guid id, Guid postid, [FromBody] NewComment newcomment) { return(_processor.CommentPost(id, postid, newcomment)); }