public async Task <IActionResult> Details(int id)
 {
     return(await _resiliencyHelper.ExecuteResilient(async() =>
     {
         var model = new ContractManagementDetailsViewModel
         {
             Vat = await _contractManagementAPI.GetByVatId(id)
         };
         return View(model);
     }, View("Offline", new ContractManagementOfflineViewModel())));
 }
 public async Task <VAT> GetByVatId([AliasAs("id")] int vatId)
 {
     try
     {
         return(await _client.GetByVatId(vatId));
     }
     catch (ApiException ex)
     {
         if (ex.StatusCode == HttpStatusCode.NotFound)
         {
             return(null);
         }
         else
         {
             throw;
         }
     }
 }