private void AddPlayerScoring(int playerId) { var db = new BoardSquaresRepository(); foreach (var score in ScoringEventsList.Where(s => s.Value > -1)) { db.CreateNewScoringEvent(playerId, Convert.ToInt32(score.ScoringEventID), Round, score.Value); } GetScoringsForPlayerPosition(); ScoringPoints = GetScoringEventsForPlayer(playerId); IsScoringDetailVisible = true; IsPlayerSelectionAreaVisible = false; IsNewScoringEventAreaVisible = true; }