public IActionResult Get(int id) { var allPatients = patientRepo.GetAllPatientsInTheICU(id); if (allPatients.Count != 0) { return(Ok(allPatients)); } return(NotFound()); }