public async Task <IActionResult> Index() { return(await _resiliencyHelper.ExecuteResilient(async() => { var model = new VehicleInsuranceManagementViewModel { Insurances = await _vehicleManagementAPI.GetInsurances() }; return View(model); }, View("Offline", new VehicleInsuranceManagementOfflineViewModel()))); }
public async Task <List <Insurance> > GetInsurances() { return(await _client.GetInsurances()); }