Example #1
0
        //------------------------------------------------------------------------------
        public virtual void CountOfferCategoryByOrgIdByTypeId()
        {
            string _org_id = (string)util.GetParamValue(_context, "org_id");
            string _type_id = (string)util.GetParamValue(_context, "type_id");

            ResponseOfferCategoryInt wrapper = new ResponseOfferCategoryInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "offer-category/count/by-org-id/by-type-id";

            int i = api.CountOfferCategoryByOrgIdByTypeId(
                _org_id
                , _type_id
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #2
0
        //------------------------------------------------------------------------------
        public virtual void CountOfferCategoryByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountOfferCategoryByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #3
0
        //------------------------------------------------------------------------------
        public virtual void CountOfferCategory()
        {
            ResponseOfferCategoryInt wrapper = new ResponseOfferCategoryInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "offer-category/count";

            int i = api.CountOfferCategory(
            );

            // get data
            wrapper.data = i;

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