Пример #1
0
 public void RemovePatientRoom(Model.Rooms.PatientRoom oldPatientRoom)
 {
     if (oldPatientRoom == null)
     {
         return;
     }
     if (this.patientRoom != null)
     {
         if (this.patientRoom.Contains(oldPatientRoom))
         {
             this.patientRoom.Remove(oldPatientRoom);
         }
     }
 }
Пример #2
0
 public void AddPatientRoom(Model.Rooms.PatientRoom newPatientRoom)
 {
     if (newPatientRoom == null)
     {
         return;
     }
     if (this.patientRoom == null)
     {
         this.patientRoom = new System.Collections.Generic.List <PatientRoom>();
     }
     if (!this.patientRoom.Contains(newPatientRoom))
     {
         this.patientRoom.Add(newPatientRoom);
     }
 }