private void CultureSite_InsertDelete_After(object sender, ObjectEventArgs e) { CultureSiteInfo CultureSite = (CultureSiteInfo)e.Object; string SiteName = DynamicRouteHelper.GetSite(CultureSite.SiteID).SiteName; DynamicRouteEventHelper.SiteLanguageChanged(SiteName); }
private void CultureSite_InsertDelete_After(object sender, ObjectEventArgs e) { CultureSiteInfo CultureSite = (CultureSiteInfo)e.Object; string SiteName = DynamicRouteInternalHelper.GetSite(CultureSite.SiteID).SiteName; try { DynamicRouteEventHelper.SiteLanguageChanged(SiteName); } catch (UrlSlugCollisionException ex) { LogErrorsInSeparateThread(ex, "DynamicRouting", "UrlSlugConflict", $"Occurred on Culture Site Insert/Delete for Site {SiteName}"); e.Cancel(); } catch (Exception ex) { LogErrorsInSeparateThread(ex, "DynamicRouting", "Error", $"Occurred on Culture Site Insert/Delete for Site {SiteName}"); } }