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

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

            int i = api.CountProfileTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountProfileType(
            );

            // get data
            wrapper.data = i;

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