private async Task FilterResults() { FilteredTeamList = new List <string>(); var valuehome = TeamList.FindAll(item => item.HomeTeam == TeamNameEntry && item.FTR == "H"); foreach (var teamawayname in valuehome) { FilteredTeamList.Add(teamawayname.AwayTeam); } var valueaway = TeamList.FindAll(item => item.AwayTeam == TeamNameEntry && item.FTR == "A"); foreach (var teamhomename in valueaway) { FilteredTeamList.Add(teamhomename.HomeTeam); } }