コード例 #1
0
        public async Task <IActionResult> Get()
        {
            var result = await _forecastService.GetForecastsAsync();

            return(Ok(new { From = result.Item1, Data = result.Item2 }));
        }
コード例 #2
0
 protected async override Task OnInitializedAsync()
 {
     await ForecastService.GetForecastsAsync();
 }