public void AskBackRound() { lock (_moveLock) { if (PreviousRound?.CanExecute(null) == true) { PreviousRound.Execute(null); } } }
public IGame ToDomainModel() { return(new Game.Game(Host) { Id = Id, EasyCode = EasyCode, Players = Players?.Select(p => p as IPlayer)?.ToList(), CurrentRound = CurrentRound?.ToDomainModel(), PreviousRound = PreviousRound?.ToDomainModel(), PreviousRounds = PreviousRounds?.Select(pr => pr.ToDomainModel())?.ToList() }); }