public async Task <IActionResult> GetRedBloodCellCountObservationsForPatientAsync(string patientId) { Logger.LogDebug(nameof(GetRedBloodCellCountObservationsForPatientAsync)); if (!ModelState.IsValid) { return(BadRequest()); } var response = await _observationService.GetRedBloodCellCountObservationsForPatientAsync(patientId).ConfigureAwait(false); if (response == null) { return(NotFound(new NotFoundError("The observations for a patient was not found"))); } var result = _observationsToDtoConverter.Convert(response); return(Ok(result)); }