public static void SaveResultToDb(int points)
        {
            using (var DbContext = new TheTieSilincerContext())
            {
                Score score = new Score(points);

                score.PlayerDbId = currentPlayer.PlayerId;

                DbContext.Scores.Add(score);

                DbContext.SaveChanges();
            }
        }
        public static void CreateCharacter(string name, string password)
        {
            using (var DbContext = new TheTieSilincerContext())
            {
                try
                {
                    PlayerDbEntity newPlayer = new PlayerDbEntity(name, password);
                    DbContext.Players.Add(newPlayer);

                    GameService.currentPlayer = newPlayer;

                    DbContext.SaveChanges();
                }
                catch (CustomRegisterException ex)
                {
                    RegisterMenu.RegisterNewPlayer(ex.Message);
                }
            }
        }