private void Document_Delete_After(object sender, DocumentEventArgs e)
 {
     try
     {
         DynamicRouteEventHelper.DocumentDeleted(e.Node.NodeParentID);
     }
     catch (UrlSlugCollisionException ex)
     {
         LogErrorsInSeparateThread(ex, "DynamicRouting", "UrlSlugConflict", $"Occurred on Document Delete for Node {e.Node.NodeAliasPath}");
         e.Cancel();
     }
     catch (Exception ex)
     {
         LogErrorsInSeparateThread(ex, "DynamicRouting", "Error", $"Occurred on Document Delete for Node {e.Node.NodeAliasPath}");
     }
 }
Пример #2
0
 private void Document_Delete_After(object sender, DocumentEventArgs e)
 {
     DynamicRouteEventHelper.DocumentDeleted(e.Node.NodeParentID);
 }