private async void GetLocations() { List <ContinentData> continents = await covidService.GetContinents(); List <CountryData> countries = await covidService.GetCountries(); List <string> allLocations = new List <string> { "Global" }; foreach (var i in continents) { allLocations.Add(i.Continent); } foreach (var j in countries) { allLocations.Add(j.Country); } Location = allLocations; }