public Player GetPlayer(int id) { foreach (var player in DemoData.GetPlayers()) { if (player.Id == id) { return(player); } } return(null); }
public IReadOnlyList <Player> GetPlayers() { return(DemoData.GetPlayers()); }