Пример #1
0
        public static void InsertNewScore(ScoreDto newScore)
        {
            DbScore dbScore = new DbScore();

            dbScore.PlayerNumber   = newScore.PlayerNumber;
            dbScore.ComputerNumber = newScore.ComputerNumber;
            dbScore.IsPlayerWin    = newScore.IsPlayerWin;
            dbScore.PlayTimeMsec   = newScore.PlayTimeMsec;

            db.Insert(dbScore);
        }