public PlayerInfo getPlayer(string playername)
        {
            PlayerInfo result = null;
            using (var ctx = new GcmlDbContext())
            {
                PlayerInfo player = (from p in ctx.Players
                    where p.playerName == playername
                    select p).FirstOrDefault();

                if (player == null)
                {
                    player = new PlayerInfo() { playerName = playername };
                    ctx.Players.Add(player);
                    ctx.SaveChanges();
                }

                result = player;
            }

            return result;
        }
        public PlayerInfo getPlayer(string playername)
        {
            PlayerInfo result = new PlayerInfo();
            var playerrow =  ds.Player.FindByPlayerName(playername);
            if (playerrow != null)
            {
                result = new PlayerInfo();
                result.playerName = playerrow.PlayerName;
            }

            return result;
        }