/// <summary> /// 优惠券渠道详细 /// </summary> /// <param name="channelID">ID</param> /// <returns></returns> public CouponChannelInfo Get(int channelID) { CouponChannelRequest request = new CouponChannelRequest() { channelID = channelID }; string postData = JsonHelper.GetJson(request); CouponChannelResponse response = client.Execute(request, get, postData); if (response != null && response.template != null) { return(response.template); } return(null); }
/// <summary> /// 删除优惠券渠道 /// </summary> /// <param name="channelID">ID</param> /// <returns></returns> public bool Delete(int channelID) { CouponChannelRequest request = new CouponChannelRequest() { channelID = channelID }; string postData = JsonHelper.GetJson(request); CouponChannelResponse response = client.Execute(request, delete, postData); if (response != null) { return(response.success); } return(false); }