public static string[] GetAllServers() { ServerDB serverDB = new ServerDB(); Servers servers = serverDB.SelectAll(); string[] serversSTR = new string[servers.Count]; if (servers == null || servers.Count == 0) { return(null); } else { string str = null; for (int i = 0; i < servers.Count; i++) { Server server = servers[i]; str = "{\"ID\":\"" + server.ID + "\",\"Name\":\"" + server.Name + "\",\"HostUsername\":\"" + server.HostUsername + "\",\"OfferData\":[" + server.OfferData + "]" + "}"; serversSTR[i] = str; str = null; } } return(serversSTR); }