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

            ResponseOfferTypeInt wrapper = new ResponseOfferTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "offer-type/count/by-uuid";

            int i = api.CountOfferTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #2
0
        //------------------------------------------------------------------------------
        public virtual void CountOfferType()
        {
            ResponseOfferTypeInt wrapper = new ResponseOfferTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "offer-type/count";

            int i = api.CountOfferType(
            );

            // get data
            wrapper.data = i;

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