void StoreAndDeleteCurrentIfRenamed(IResource res, Resource oldResource, string resourcePath) { if (res.ResourceName != oldResource.ResourceName) { StoreVersion(res, "unknown", "Rollback", Guid.Empty, resourcePath); _catalogue.DeleteResource(Guid.Empty, res.ResourceName, res.ResourceType, false); } }