public void Add(Account account, Counterparty owner) { var item = new CatalogObjectNode { Id = GetReferenceId(account, owner), CatalogueType = this.Name }; item.Reference = CreateReferenceTo(account, owner); item.Properties.AddRange(GetProperties(account, owner)); exportData.Objects.Add(item); }
public void Add(T obj) { var item = new CatalogObjectNode { Id = GetReferenceId(obj), CatalogueType = this.Name }; item.Reference = CreateReferenceTo(obj); item.Properties.AddRange(GetProperties(obj)); exportData.Objects.Add(item); }