public List <ExchangePacketTypeConfig> GetExchangePacketTypeConfigList(ref DataPage dp) { _admin = new CharmEventsAdminService.CharmEventsAdminServiceClient(); List <ExchangePacketTypeConfig> lists = new List <ExchangePacketTypeConfig>(); try { lists = _admin.GetExchangePacketTypeConfigList(ref dp); _admin.Close(); return(lists); } catch (Exception ex) { _admin.CloseCatch(ex, "GetExchangePacketTypeConfigList failed"); return(lists); } }