Esempio n. 1
0
 public async Task <IActionResult> Index()
 {
     return(await _resiliencyHelper.ExecuteResilient(async() =>
     {
         var model = new ContractManagementViewModel
         {
             Rates = await _contractManagementAPI.GetRates()
         };
         return View(model);
     }, View("Offline", new ContractManagementOfflineViewModel())));
 }
Esempio n. 2
0
 public async Task <List <Rate> > GetRates()
 {
     return(await _client.GetRates());
 }