/// <summary> /// 添加积分兑换 /// </summary> /// <param name="model"></param> /// <returns></returns> public int InsertExchangeCenterConfig(ExchangeCenterConfig model) { try { return(DALExchangeCenterConfig.InsertExchangeCenterConfig(model)); } catch (TuhuBizException) { throw; } catch (Exception ex) { var exception = new ExchangeCenterConfigException(1, "InsertExchangeCenterConfig", ex); Logger.Log(Level.Error, exception, "InsertExchangeCenterConfig"); throw ex; } }
public ExchangeCenterConfig GetExchangeCenterConfig(int id) { try { return(DALExchangeCenterConfig.GetExchangeCenterConfig(id)); } catch (TuhuBizException) { throw; } catch (Exception ex) { var exception = new ExchangeCenterConfigException(1, "GetExchangeCenterConfig", ex); Logger.Log(Level.Error, exception, "GetExchangeCenterConfig"); throw ex; } }
public List <ExchangeCenterConfig> GetExchangeCenterConfigList() { try { return(DALExchangeCenterConfig.GetExchangeCenterConfigList()); } catch (TuhuBizException) { throw; } catch (Exception ex) { var exception = new ExchangeCenterConfigException(1, "GetExchangeCenterConfigList", ex); Logger.Log(Level.Error, exception, "GetExchangeCenterConfigList"); throw ex; } }
public bool UpdatePersonalCenterCouponConfig(PersonalCenterCouponConfig model) { try { return(DALExchangeCenterConfig.UpdatePersonalCenterCouponConfig(model)); } catch (TuhuBizException) { throw; } catch (Exception ex) { var exception = new ExchangeCenterConfigException(1, "InsertPersonalCenterCouponConfig", ex); Logger.Log(Level.Error, exception, "InsertPersonalCenterCouponConfig"); throw ex; } }
public bool DeletePersonalCenterCouponConfig(int id) { try { return(DALExchangeCenterConfig.DeletePersonalCenterCouponConfig(id)); } catch (TuhuBizException) { throw; } catch (Exception ex) { var exception = new ExchangeCenterConfigException(1, "DeletePersonalCenterCouponConfig", ex); Logger.Log(Level.Error, exception, "DeletePersonalCenterCouponConfig"); throw ex; } }
public List <ExchangeCenterConfig> GetExchangeCenterConfigList(string sqlStr, int pageSize, int pageIndex, out int recordCount) { try { return(DALExchangeCenterConfig.GetExchangeCenterConfigList(sqlStr, pageSize, pageIndex, out recordCount)); } catch (TuhuBizException) { throw; } catch (Exception ex) { var exception = new ExchangeCenterConfigException(1, "GetExchangeCenterConfigList", ex); Logger.Log(Level.Error, exception, "GetExchangeCenterConfigList"); throw ex; } }