Deletes all deletedNodes and saves all updatedNodes to the database
Parameters
nodeRepository
the repository to use for saving and deleting
Deletes all deletedNodes and saves all updatedNodes to the database
Return
the saved version of node
Parameters
node
an additional node to save, which the saved version of should be returned
nodeRepository
the repository to use for saving and deleting