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

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

            int i = api.CountSiteTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #2
0
        //------------------------------------------------------------------------------
        public virtual void CountSiteType()
        {
            ResponseSiteTypeInt wrapper = new ResponseSiteTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "site-type/count";

            int i = api.CountSiteType(
            );

            // get data
            wrapper.data = i;

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