Example #1
0
        public CommentInfo GetPrevHTMLComment(string text, string commentId)
        {
            var comment = !string.IsNullOrEmpty(commentId) ? Wiki.GetComment(new Guid(commentId)) : new Comment();

            comment.Date   = TenantUtil.DateTimeNow();
            comment.UserId = SecurityContext.CurrentAccount.ID;
            comment.Body   = text;

            var info = GetCommentInfo(comment);

            info.IsEditPermissions     = false;
            info.IsResponsePermissions = false;
            return(info);
        }
Example #2
0
        public string LoadCommentText(string commentId, string pid)
        {
            var comment = Wiki.GetComment(new Guid(commentId));

            return(comment != null ? comment.Body : string.Empty);
        }