public async Task <ActionResult> GetInspections([FromRoute] Guid vehicleId) { var inspections = await _inspectionService.GetInspectionsByVehicleAsync(vehicleId); if (!inspections.Any()) { return(NotFound()); } return(Ok(inspections)); }
public async Task <ActionResult> GetInspections([FromRoute] Guid vehicleId) { var inspections = await _inspectionService.GetInspectionsByVehicleAsync(vehicleId); if (!inspections.Any()) { return(NotFound()); } return(Ok(inspections)); }