public async Task <IActionResult> Details(DateTime planningDate, string jobId) { return(await _resiliencyHelper.ExecuteResilient(async() => { string dateStr = planningDate.ToString("yyyy-MM-dd"); var model = new WorkshopManagementDetailsViewModel { Date = planningDate, MaintenanceJob = await _workshopManagementAPI.GetMaintenanceJob(dateStr, jobId) }; return View(model); }, View("Offline", new WorkshopManagementOfflineViewModel()))); }
public async Task <IActionResult> Details(DateTime date, string jobId) { return(await ExecuteWithFallback(async() => { string dateStr = date.ToString("yyyy-MM-dd"); var model = new WorkshopManagementDetailsViewModel { Date = date, MaintenanceJob = await _workshopManagementAPI.GetMaintenanceJob(dateStr, jobId) }; return View(model); })); }