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