Exemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void CountOfferLocationByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountOfferLocationByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------------
        public virtual void CountOfferLocation()
        {
            ResponseOfferLocationInt wrapper = new ResponseOfferLocationInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "offer-location/count";

            int i = api.CountOfferLocation(
            );

            // get data
            wrapper.data = i;

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