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

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

            int i = api.CountProfileOfferByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountProfileOffer(
            );

            // get data
            wrapper.data = i;

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