Ejemplo n.º 1
0
 public void AddNewPatient(Patient newPatient)
 {
     if (_patientStorage.NumberOfPatients() < _capacity)
     {
         _patientStorage.Create(newPatient);
         Console.WriteLine("Received a new patient!");
     }
     else
     {
         throw new Exception("Sorry, hospital rooms are full!");
     }
 }
 public Patient AddNewPatient(Patient newPatient)
 {
     _patientStorage.Create(newPatient);
     return(newPatient);
 }