Esempio n. 1
0
        public override async Task <CommandResult> Execute()
        {
            await Task.CompletedTask;

            var locations = dataService.GetWeatherLocations();

            Logger.Trace("Got Locations", locations);
            var forecasts = locations.Locations.Select(l => dataService.GetMostRecentForecast(l.Identifier)).ToList();

            Logger.Trace("Forcasts", forecasts);

            return(CommandResult.CreateSuccessResult(new { locations, forecasts }));
        }