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;
        }
Ejemplo n.º 2
0
        public async Task <List <Country> > GetCountries()
        {
            var covidInfo = await _service.GetCountries();

            return(covidInfo);
        }