示例#1
0
 public void RemovePatient(Model.Users.PatientModel oldPatient)
 {
     if (oldPatient == null)
     {
         return;
     }
     if (this.patient != null)
     {
         if (this.patient.Contains(oldPatient))
         {
             this.patient.Remove(oldPatient);
         }
     }
 }
示例#2
0
 public void AddPatient(Model.Users.PatientModel newPatient)
 {
     if (newPatient == null)
     {
         return;
     }
     if (this.patient == null)
     {
         this.patient = new System.Collections.Generic.List <PatientModel>();
     }
     if (!this.patient.Contains(newPatient))
     {
         this.patient.Add(newPatient);
     }
 }