//... public async Task <IActionResult> Index(CancellationToken token) { MyViewModel myvm = new MyViewModel(); myvm.ItalianAthletes = await _service.GetAthletesByCountryAsync("Italy", token).ConfigureAwait(true); // rest of code }
//... public async Task <IActionResult> Index(CancellationToken token) { MyViewModel myvm = new MyViewModel(); myvm.ItalianAthletes = await _service.GetAthletesByCountryAsync("Italy", token).ConfigureAwait(true); // rest of code }