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); } }
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); } }
//private string _content = string.Empty; //public string FeedBackContent //{ // get // { // return _content; // } // set // { // _content = value; // } //} //private string _contentreplay = string.Empty; //public string FeedBackContentReply //{ // get // { // return _contentreplay; // } // set // { // _contentreplay = value; // } //} public ArticleCommentArgs(ArticleComment Artcomment, bool isEdit) { _Artcomment = Artcomment; _isEdit = isEdit; }
public static void ArticleEdit(int id) { PSCPortal.CMS.ArticleComment feedback = FeedBackList.Where(a => a.ID == id).Single(); PSCDialog.DataShare = new PSCPortal.CMS.ArticleCommentArgs(feedback, true); }