Beispiel #1
0
        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));
        }