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())));
 }
Exemple #2
0
 public async Task <List <Insurance> > GetInsurances()
 {
     return(await _client.GetInsurances());
 }