/// <summary> /// 删除评论 /// </summary> /// <param name="id">评论ID</param> /// <returns></returns> public static bool Delete(string id) { return(CommentService.Delete(id)); }
public List <Comment> GetModelLinkUsers(int UserId, int ProjectId) { CommentService commentService = new CommentService(); return(commentService.GetModelLinkUsers(UserId, ProjectId)); }
/// <summary> /// 根据新闻ID取出该新闻的所有评论 /// </summary> /// <param name="newsId">新闻ID</param> /// <returns></returns> public static DataTable SelectByNewsId(string newsId) { return(CommentService.SelectByNewsId(newsId)); }
/// <summary> /// 添加评论 /// </summary> /// <param name="com">评论实体类</param> /// <returns></returns> public static bool Insert(Comment com) { return(CommentService.Insert(com)); }
public static void AddComment(Questions qs) { CommentService.AddComment(qs); }
public static IList <Questions> GetCommentByArticleId(int ThemeId) { return(CommentService.GetCommentByArticleId(ThemeId)); }
//CommentService cs = new CommentService(); public static int GetCommentNumber(int ThemeId) { return(CommentService.GetCommentNumber(ThemeId)); }
/// <summary> /// 修改评论Content数据 /// </summary> /// <param name="cmt"></param> /// <returns></returns> public static bool Modify(Comment cmt) { CommentService service = new CommentService(); return(service.UpdataContent(cmt)); }
/// <summary> /// 根据评论ID删除数据 /// </summary> /// <param name="articleId"></param> /// <returns></returns> public static bool DeleteCommentById(int commentId) { CommentService service = new CommentService(); return(service.DeleteById(commentId)); }