public CommentsResponse DeleteComment(int commentId, int instanceId)
        {
            CommentTreeRequest request = new CommentTreeRequest
            {
                CommentId  = commentId,
                InstanceId = instanceId
            };

            return(_commentService.DeleteComment(request));
        }
        public CommentViewModel GetNewLevel(int instanceId, int parentCommentId, int treeLevel)
        {
            var request = new CommentTreeRequest
            {
                InstanceId = instanceId,
                CommentId  = parentCommentId,
                EditLevel  = treeLevel
            };

            return(_commentService.GetNewLevel(request).Comment);
        }
        public CommentViewModel GetCommentTree(int commentId,
                                               int instanceId,
                                               int level,
                                               bool isExpand,
                                               bool isOpcAgreement)
        {
            CommentTreeRequest request = new CommentTreeRequest
            {
                CommentId      = commentId,
                EditLevel      = level,
                InstanceId     = instanceId,
                IsExpand       = isExpand,
                IsOpcAgreement = isOpcAgreement
            };

            var response = _commentService.GetCommentTree(request);

            return(response.Comment);
        }