public async Task <ActionResult <Inspection> > GetInspectionByIdAsync(int id) { // Retrieve inspection Inspection inspection = await _inspectionService.FindByIdAsync(id, HttpContext.RequestAborted).ConfigureAwait(false); if (inspection == null) { return(NotFound()); } return(inspection); }