public async Task <IViewComponentResult> InvokeAsync(string location) { List <WeatherPointDto> weatherPoints = (await _weatherDataService.GetWeatherDataAsync(location)).ToList(); List <DailyWeather> dailyWeathers = _weatherAnalyticsService.GetDailyWeather(weatherPoints, 3).ToList(); return(View(dailyWeathers)); }