public void RemoveMedicineDosage(MedicineDosage oldMedicineDosage) { if (oldMedicineDosage == null) { return; } if (this.medicineDosage != null) { if (this.medicineDosage.Contains(oldMedicineDosage)) { this.medicineDosage.Remove(oldMedicineDosage); } } }
public void AddMedicineDosage(MedicineDosage newMedicineDosage) { if (newMedicineDosage == null) { return; } if (this.medicineDosage == null) { this.medicineDosage = new List <MedicineDosage>(); } if (!this.medicineDosage.Contains(newMedicineDosage)) { this.medicineDosage.Add(newMedicineDosage); } }