public async void InitializeData() { try { IsLoading = true; var alertResult = await alertService.ShowAlertAsync( "Would you like to display coffees list", "Confirmation", "Yes", "No"); if (alertResult) { Coffees = await CoffeeService.GetCoffeesAsync(); } } finally { IsLoading = false; } }
public async Task <ActionResult> Get(CancellationToken ct) { var liste = await _coffeeService.GetCoffeesAsync(ct); return(Ok(liste)); }