//------------------------------------------------------------------------------ public virtual void CountCouponByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseCouponInt wrapper = new ResponseCouponInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "coupon/count/by-uuid"; int i = api.CountCouponByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountCoupon() { ResponseCouponInt wrapper = new ResponseCouponInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "coupon/count"; int i = api.CountCoupon( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }