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

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

            int i = api.CountOrgTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountOrgType(
            );

            // get data
            wrapper.data = i;

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