public virtual void AddCategory(PartyCategory newInstance) { //foreach (PartyCategory a in this.Categories) //{ // if (a.CategoryRoot.NodeID == newInstance.CategoryRoot.NodeID) // { // //expire the existing one // if (a.EffectivePeriod.To >= newInstance.EffectivePeriod.From) // a.EffectivePeriod.To = newInstance.EffectivePeriod.From.Date.AddDays(-1); // } //} this.Categories.Add(newInstance); }
public PartyCategory(PartyCategory original, User user) : base(original, user) { }