Пример #1
0
        public void SaveLiveNewsUpdate(string networkid, string siteid, string newsid, string title, string desc, string addedby, string imagename)
        {
            int count = 0;

            try
            {
                string networkconn = System.Configuration.ConfigurationManager.AppSettings[networkid].ToString();
                using (Gettyclasses.newsliveupdatemgmt objnews = new Gettyclasses.newsliveupdatemgmt(networkconn))
                {
                    objnews.NewsId      = newsid;
                    objnews.SiteId      = siteid;
                    objnews.Title       = title;
                    objnews.Description = desc;
                    objnews.Addedby     = addedby;
                    objnews.Image       = imagename;
                    objnews.NewsId      = newsid;
                    count         = objnews.SaveLiveNewsUpdate();
                    ltresult.Text = count.ToString();
                }
            }
            catch (Exception ex)
            {
                CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.BLL, "ajaxpost.aspx.cs SaveLiveNewsUpdate", ex);
            }
        }
Пример #2
0
 public void SetHighlightNewsLiveUpdate(string ids, string networkid, string siteurl, string status)
 {
     try
     {
         string networkconn = System.Configuration.ConfigurationManager.AppSettings[networkid].ToString();
         using (Gettyclasses.newsliveupdatemgmt objnews = new Gettyclasses.newsliveupdatemgmt(networkconn))
         {
             objnews.SetHighlightNewsUpdateLive(ids, status);
             RefreshCache(siteurl + strgeneratexml);
         }
     }
     catch (Exception ex)
     {
         CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.BLL, "ajaxpost.aspx.cs SetHighlightNewsLiveUpdate", ex);
     }
 }
Пример #3
0
 public void DeleteNewsLiveUpdate(string ids, string networkid, string newsid, string siteurl)
 {
     try
     {
         string networkconn = System.Configuration.ConfigurationManager.AppSettings[networkid].ToString();
         using (Gettyclasses.newsliveupdatemgmt objnews = new Gettyclasses.newsliveupdatemgmt(networkconn))
         {
             int count = objnews.DeleteNewsUpdateLive(ids, newsid);
             ltresult.Text = count.ToString();
             RefreshCache(siteurl + strgeneratexml);
         }
     }
     catch (Exception ex)
     {
         CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.BLL, "ajaxpost.aspx.cs DeleteNewsLiveUpdate", ex);
     }
 }