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

            ResponseContentItemTypeInt wrapper = new ResponseContentItemTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "content-item-type/count/by-uuid";

            int i = api.CountContentItemTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemple #2
0
        //------------------------------------------------------------------------------
        public virtual void CountContentItemType()
        {
            ResponseContentItemTypeInt wrapper = new ResponseContentItemTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "content-item-type/count";

            int i = api.CountContentItemType(
            );

            // get data
            wrapper.data = i;

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