Exemplo n.º 1
0
        private static string GetPlayers()
        {
            adapter.Connect(settings.DatabaseFilepath);
            var players = adapter.GetPlayers();

            adapter.Close();
            var result = "<Players>";

            foreach (var player in players)
            {
                result += JsonHelper.Save(player);
            }
            result += "</Players>";

            return(result);
        }