Esempio n. 1
0
 public bool InsertUpkeepActivitySetting(BaoYangActivitySetting model)
 {
     try
     {
         int    id          = 0;
         string activityNum = "";
         if (DalBaoYangActivitySetting.InsertUpkeepActivitySetting(model, out id, out activityNum))
         {
             using (var client = new CacheClient())
             {
                 client.UpdateBaoYangActivityAsync(activityNum);
             }
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error("InsertUpkeepActivitySetting", ex);
         throw ex;
     }
 }