示例#1
0
        public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdatePromotion(Jinher.AMP.BTP.Deploy.CustomDTO.DiscountsVM discountsDTO)
        {
            //定义返回值
            Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO result;

            try
            {
                //调用代理方法
                result = base.Channel.UpdatePromotion(discountsDTO);
            }
            catch
            {
                //抛异常
                throw;
            }
            finally
            {
                //关链接
                ChannelClose();
            }            //返回结果
            return(result);
        }
示例#2
0
 /// <summary>
 /// 修改折扣
 /// </summary>
 /// <param name="discountsDTO">自定义属性</param>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdatePromotion(Jinher.AMP.BTP.Deploy.CustomDTO.DiscountsVM discountsDTO)
 {
     base.Do();
     return(this.UpdatePromotionExt(discountsDTO));
 }
示例#3
0
 /// <summary>
 /// 添加折扣
 /// </summary>
 /// <param name="discountsDTO">自定义折扣属性</param>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO AddPromotion(Jinher.AMP.BTP.Deploy.CustomDTO.DiscountsVM discountsDTO)
 {
     base.Do();
     return(this.Command.AddPromotion(discountsDTO));
 }