public async Task <IActionResult> GetInspectionsAsync(int establishmentId, CancellationToken cancellationToken = default) { _logger.LogInformation($"Getting Inspections for EstablishmentId ${establishmentId}"); var inspections = await _establishmentRepository.GetInspectionsAsync(establishmentId, cancellationToken); return(Ok(inspections.Any() ? _domainMapper.MapInspectionResponses(inspections) : Enumerable.Empty <InspectionResponse>())); }