public void RemoveReferralToSpecialist(ReferralToSpecialist oldReferralToSpecialist) { if (oldReferralToSpecialist == null) { return; } if (this.referralToSpecialist != null) { if (this.referralToSpecialist.Contains(oldReferralToSpecialist)) { this.referralToSpecialist.Remove(oldReferralToSpecialist); } } }
public void AddReferralToSpecialist(ReferralToSpecialist newReferralToSpecialist) { if (newReferralToSpecialist == null) { return; } if (this.referralToSpecialist == null) { this.referralToSpecialist = new System.Collections.Generic.List <ReferralToSpecialist>(); } if (!this.referralToSpecialist.Contains(newReferralToSpecialist)) { this.referralToSpecialist.Add(newReferralToSpecialist); } }