Esempio n. 1
0
        public void UpdatePlayerRecord(int playerRecordId, PlayerRecord data)
        {
            var playerRecord = PlayerRecords.Find(playerRecordId);

            playerRecord.PlayedGames  = data.PlayedGames;
            playerRecord.Won          = data.Won;
            playerRecord.Tied         = data.Tied;
            playerRecord.Lost         = data.Lost;
            playerRecord.Assists      = data.Assists;
            playerRecord.AllowedGoals = data.AllowedGoals;
            playerRecord.Goals        = data.Goals;
            SaveChanges();
        }
Esempio n. 2
0
 public PlayerRecord GetPlayerRecordById(int id)
 {
     return(PlayerRecords.Find(id));
 }