Esempio n. 1
0
        public static async Task <List <WeatherData> > PopulateByRandValues()
        {
            FetchData          fetch           = new FetchData();
            List <WeatherData> listWithWeather = new List <WeatherData>();

            for (int i = 0; i < 5; i++)
            {
                listWithWeather.Add(await fetch.GetRandomCity());
            }
            return(listWithWeather);
        }