public virtual void DeleteNodes(INodeProxy[] nodesToDelete)
{
foreach (INodeProxy nodeProxy in nodesToDelete)
{
if (this.FocalNodeId != nodeProxy.ParentMapNodeUid)
{
NodeService.DeleteNodeTransclusion(this.DomainId, this.FocalNodeId, nodeProxy);
}
else
{
if (nodeProxy.TransclusionCount == 1)
{
NodeService.DeleteNode(this.DomainId, nodeProxy.Id);
}
else
{
NodeService.DeleteNodePromoteTransclusion(this.DomainId, this.FocalNodeId, nodeProxy);
}
}
}
}