Example #1
0
 public bool InsertCouponActivityConfig(CouponActivityConfig model)
 {
     try
     {
         return(DalCouponActivityConfig.InsertCouponActivityConfig(model));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new CouponActivityConfigException(1, "InsertCouponActivityConfig", ex);
         Logger.Log(Level.Error, exception, "InsertCouponActivityConfig");
         throw ex;
     }
 }
Example #2
0
 public bool DeleteCouponActivityConfig(int id)
 {
     try
     {
         return(DalCouponActivityConfig.DeleteCouponActivityConfig(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new CouponActivityConfigException(1, "DeleteCouponActivityConfig", ex);
         Logger.Log(Level.Error, exception, "DeleteCouponActivityConfig");
         throw ex;
     }
 }
Example #3
0
 public List <CouponActivityConfig> GetCouponActivityConfigList(int type, string sqlStr, int pageSize, int pageIndex, out int recordCount)
 {
     try
     {
         return(DalCouponActivityConfig.GetCouponActivityConfig(type, sqlStr, pageSize, pageIndex, out recordCount));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new CouponActivityConfigException(1, "GetCouponActivityConfigList", ex);
         Logger.Log(Level.Error, exception, "GetCouponActivityConfigList");
         throw ex;
     }
 }