示例#1
0
 /// <summary>
 /// 删除评论
 /// </summary>
 /// <param name="id">评论ID</param>
 /// <returns></returns>
 public static bool Delete(string id)
 {
     return(CommentService.Delete(id));
 }
示例#2
0
        public List <Comment> GetModelLinkUsers(int UserId, int ProjectId)
        {
            CommentService commentService = new CommentService();

            return(commentService.GetModelLinkUsers(UserId, ProjectId));
        }
示例#3
0
 /// <summary>
 /// 根据新闻ID取出该新闻的所有评论
 /// </summary>
 /// <param name="newsId">新闻ID</param>
 /// <returns></returns>
 public static DataTable SelectByNewsId(string newsId)
 {
     return(CommentService.SelectByNewsId(newsId));
 }
示例#4
0
 /// <summary>
 /// 添加评论
 /// </summary>
 /// <param name="com">评论实体类</param>
 /// <returns></returns>
 public static bool Insert(Comment com)
 {
     return(CommentService.Insert(com));
 }
示例#5
0
 public static void AddComment(Questions qs)
 {
     CommentService.AddComment(qs);
 }
示例#6
0
 public static IList <Questions> GetCommentByArticleId(int ThemeId)
 {
     return(CommentService.GetCommentByArticleId(ThemeId));
 }
示例#7
0
 //CommentService cs = new CommentService();
 public static int GetCommentNumber(int ThemeId)
 {
     return(CommentService.GetCommentNumber(ThemeId));
 }
示例#8
0
        /// <summary>
        /// 修改评论Content数据
        /// </summary>
        /// <param name="cmt"></param>
        /// <returns></returns>
        public static bool Modify(Comment cmt)
        {
            CommentService service = new CommentService();

            return(service.UpdataContent(cmt));
        }
示例#9
0
        /// <summary>
        /// 根据评论ID删除数据
        /// </summary>
        /// <param name="articleId"></param>
        /// <returns></returns>
        public static bool DeleteCommentById(int commentId)
        {
            CommentService service = new CommentService();

            return(service.DeleteById(commentId));
        }