Beispiel #1
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileCouponByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseProfileCouponInt wrapper = new ResponseProfileCouponInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-coupon/count/by-uuid";

            int i = api.CountProfileCouponByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #2
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileCoupon()
        {
            ResponseProfileCouponInt wrapper = new ResponseProfileCouponInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-coupon/count";

            int i = api.CountProfileCoupon(
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }