/// <summary> /// Remove an existing Alergen from the collection /// </summary> /// <pdGenerated>Default Remove</pdGenerated> public void RemoveAlergen(Alergen oldAlergen) { if (oldAlergen == null) { return; } if (this._alergen != null) { if (this._alergen.Contains(oldAlergen)) { this._alergen.Remove(oldAlergen); } } }
/// <summary> /// Add a new Alergen in the collection /// </summary> /// <pdGenerated>Default Add</pdGenerated> public void AddAlergen(Alergen newAlergen) { if (newAlergen == null) { return; } if (this._alergen == null) { this._alergen = new List <Alergen>(); } if (!this._alergen.Contains(newAlergen)) { this._alergen.Add(newAlergen); } }