public bool DeleteBaoYangRecommendServiceConfig(int id)
 {
     try
     {
         return(DALBaoYangRecommendServiceConfig.DeleteBaoYangRecommendServiceConfig(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangRecommendServiceConfigException(1, "DeleteBaoYangRecommendServiceConfig", ex);
         Logger.Log(Level.Error, "DeleteBaoYangRecommendServiceConfig", exception);
         throw ex;
     }
 }
示例#2
0
        public bool DeleteBaoYangRecommendServiceConfig(int id)
        {
            var result = false;

            try
            {
                if (DALBaoYangRecommendServiceConfig.DeleteBaoYangRecommendServiceConfig(id))
                {
                    using (var client = new CacheClient())
                    {
                        client.UpdateTuhuRecommendConfigAsync();
                    }
                    result = true;
                }
            }
            catch (Exception ex)
            {
                Logger.Error("DeleteBaoYangRecommendServiceConfig", ex);
            }
            return(result);
        }