public busComment InsertComment(busComment abusComment) { ibusRestService = new busRestService(); modularUrl = modularUrl + "/comments"; return(ibusRestService.Post <busComment>(modularUrl, abusComment)); }
/// <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)); } }
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)); }