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()))); }
public async Task <List <Rate> > GetRates() { return(await _client.GetRates()); }