public bool UpdateUpkeepActivitySetting(BaoYangActivitySetting model) { try { if (DalBaoYangActivitySetting.UpdateUpkeepActivitySetting(model)) { using (var client = new CacheClient()) { client.UpdateBaoYangActivityAsync(model.ActivityNum); } CleanBaoYangActivitySettingCache(model.ActivityNum); return(true); } else { return(false); } } catch (TuhuBizException) { throw; } catch (Exception ex) { Logger.Error("UpdateUpkeepActivitySetting", ex); throw ex; } }