private LineUpViewModel GetBestLineup(int playerCount) { LineUp lineup = LineUp.GetBestLineup(playerCount, this._snapshots, LINEUPS_MIN_TIME); List <PlayerViewModel> players = this.PlayersData.Where(pvm => lineup.Contains(pvm.Number)).ToList(); var vm = new LineUpViewModel(players, this._snapshots); return(vm); }