public void StartFirstRound(int gameId, IEnumerable <int> playersId) { int number = _roundRepository.GetCountRoundsByGame(gameId); Round round = new Round { GameId = gameId, NumberRound = number + 1, IsCompleted = false }; round.Id = _roundRepository.Create(round); foreach (int id in playersId) { RoundPlayer roundPlayer = new RoundPlayer { RoundId = round.Id, PlayerId = id }; _roundPlayerRepository.Create(roundPlayer); } }