示例#1
0
        public IHttpActionResult AddComentToPost(CommentDto dto)
        {
            var currentUserId = User.Identity.GetUserId();

            dto.CommentingUserId = currentUserId;

            var result = _commentService.AddCommentToPost(dto);

            return(this.ReturnHttpResponse(result));
        }
示例#2
0
 public CommentInfo AddComment(CreateComment comment)
 {
     return(commentService.AddCommentToPost(comment));
 }