public void AddPropertyGroupMember(Guid propertyGroupId, Guid userId) { //if (this._viewRelations.Contains(propertyGroupId)) { return; } ViewPropertyGroupRelation relation = new ViewPropertyGroupRelation(); relation.PropertyGroupId = propertyGroupId; relation.ViewId = this.Id; relation.Created = DateTime.Now; relation.CreatedBy = userId; this._viewRelations.Add(relation); this.IsDirty = true; }
public void AddPropertyGroupMember(ViewPropertyGroupRelation relation) { this._viewRelations.Add(relation); this.IsDirty = true; }