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