private List <PlayerViewModel> getUpdatedListOfPlayers() { List <PlayerViewModel> players = new List <PlayerViewModel>(); List <PlayerModel> playersList = PDB.getAllLocalPlayers(); for (int i = 0; i < playersList.Count; i++) { EffModel ef = PDB.getPointsAndEff(playersList[i].ID); players.Add(new PlayerViewModel(playersList[i].ID, playersList[i].Name, ef.Pts, ef.Eff)); } return(players); }