public async Task <IActionResult> Get()
        {
            var result = await _forecastService.GetForecastsAsync();

            return(Ok(new { From = result.Item1, Data = result.Item2 }));
        }
Esempio n. 2
0
 protected async override Task OnInitializedAsync()
 {
     await ForecastService.GetForecastsAsync();
 }