public IActionResult GetPatient([GuidNotEmpty] Guid id) { Patient patient = null; patient = _patientDbService.FindPatient(id); return(patient == null?ReturnProblem("Patient not found.", StatusCodes.Status404NotFound) : Ok(patient)); }