//------------------------------------------------------------------------------ public virtual void CountOrgByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseOrgInt wrapper = new ResponseOrgInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "org/count/by-uuid"; int i = api.CountOrgByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountOrg() { ResponseOrgInt wrapper = new ResponseOrgInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "org/count"; int i = api.CountOrg( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }