Beispiel #1
0
    //...
    public async Task <IActionResult> Index(CancellationToken token)
    {
        MyViewModel myvm = new MyViewModel();

        myvm.ItalianAthletes = await _service.GetAthletesByCountryAsync("Italy", token).ConfigureAwait(true);

        // rest of code
    }