private void UpdateTeamPoints(GameMessageModel gameMessageModel) { var team1 = _teamsRepository.FetchTeam(gameMessageModel.Team1Name); var team2 = _teamsRepository.FetchTeam(gameMessageModel.Team2Name); team1.Games++; team2.Games++; if (gameMessageModel.Team1Goals > gameMessageModel.Team2Goals) { team1.Points += 3; } else if (gameMessageModel.Team1Goals < gameMessageModel.Team2Goals) { team2.Points += 3; } else { team1.Points++; team2.Points++; } _teamsRepository.UpdateTeam(team1); _teamsRepository.UpdateTeam(team2); }