public IHttpActionResult AddComentToPost(CommentDto dto) { var currentUserId = User.Identity.GetUserId(); dto.CommentingUserId = currentUserId; var result = _commentService.AddCommentToPost(dto); return(this.ReturnHttpResponse(result)); }
public CommentInfo AddComment(CreateComment comment) { return(commentService.AddCommentToPost(comment)); }