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