コード例 #1
0
 public static void ArticleUnPublish(int[] arrId)
 {
     foreach (int id in arrId)
     {
         PSCPortal.CMS.ArticleComment article = FeedBackList.Where(a => a.ID == id).Single();
         article.IsPublish = false;
         article.Update();
         //Libs.Ultility.DeleteArticleIndexing(idArticle);
     }
 }
コード例 #2
0
 public static void ArticlePublish(string[] arrId)
 {
     foreach (string id in arrId)
     {
         int ID = int.Parse(id);
         PSCPortal.CMS.ArticleComment feedback = FeedBackList.Where(a => a.ID == ID).Single();
         feedback.IsPublish = true;
         feedback.Update();
         //Libs.Ultility.IndexingArticle(article);
     }
 }