Exemple #1
0
 public bool DeleteAnnouncementConfig(int id)
 {
     try
     {
         return(DALAnnouncementConfig.DeleteAnnouncementConfig(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new AnnouncementConfigException(1, "DeleteAnnouncementConfig", ex);
         Logger.Log(Level.Error, exception, "DeleteAnnouncementConfig");
         throw ex;
     }
 }
Exemple #2
0
 public List <AnnouncementConfig> GetAnnouncementConfigList(AnnouncementConfig model, int pageSize, int pageIndex, out int recordCount)
 {
     try
     {
         return(DALAnnouncementConfig.GetAnnouncementConfigList(model, pageSize, pageIndex, out recordCount));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new AnnouncementConfigException(1, "GetAnnouncementConfigList", ex);
         Logger.Log(Level.Error, exception, "GetAnnouncementConfigList1");
         throw ex;
     }
 }
Exemple #3
0
 public bool InsertAnnouncementConfig(AnnouncementConfig model)
 {
     try
     {
         using (var client = new CacheClient())
         {
             var result = client.UpdateBaoYangNoticeSetting();
         }
         return(DALAnnouncementConfig.InsertAnnouncementConfig(model));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new AnnouncementConfigException(1, "InsertAnnouncementConfig", ex);
         Logger.Log(Level.Error, exception, "InsertAnnouncementConfig");
         throw ex;
     }
 }