public void RemovePatient(Model.Users.PatientModel oldPatient) { if (oldPatient == null) { return; } if (this.patient != null) { if (this.patient.Contains(oldPatient)) { this.patient.Remove(oldPatient); } } }
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); } }