Ejemplo n.º 1
0
        public busComment InsertComment(busComment abusComment)
        {
            ibusRestService = new busRestService();
            modularUrl      = modularUrl + "/comments";

            return(ibusRestService.Post <busComment>(modularUrl, abusComment));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Retrieve comments for a given snippet
 /// </summary>
 /// <param name="snippetId"></param>
 /// <returns></returns>
 public List <Comment> GetCommentsForSnippet(string snippetId)
 {
     using (busComment comment = CodePasteFactory.GetComment())
     {
         return(comment.GetCommentsForSnippet(snippetId));
     }
 }
Ejemplo n.º 3
0
        public busComment InsertComment(string astrCommentType, string astrComment, int aintSubsystemReferenceId, int aintUserId)
        {
            busComment lbusComment = new busComment {
                idoComment = new doComment()
            };

            lbusComment.idoComment.subsystemId          = busConstant.PostType;
            lbusComment.idoComment.commentHtml          = astrComment;
            lbusComment.idoComment.subsystemReferenceId = aintSubsystemReferenceId;
            lbusComment.idoComment.subsystemValue       = astrCommentType;
            lbusComment.idoComment.iintUserId           = aintUserId;
            lbusComment.idoComment.userId = aintUserId;

            return(this.InsertComment(lbusComment));
        }