示例#1
0
        public async Task <IActionResult> Index()
        {
            var cities = await _forecastService.GetCitiesAsync();

            return(View(cities.ToDictionary(key => key.Id, value => value.Name)));
        }