public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.AddUnitOfWorkFilter(); filters.Add(new AnalyticsFilter()); filters.AddDasEmployerAccountsAuthorizationFilter(); filters.AddDasEmployerAccountsUnauthorizedAccessExceptionFilter(); }
public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.AddUnitOfWorkFilter(); filters.Add(new ValidateFeatureFilter(() => DependencyResolver.Current.GetService <IAuthorizationService>())); filters.Add(new GoogleAnalyticsFilter()); filters.Add(new ViewModelFilter(() => DependencyResolver.Current.GetService <IAuthorizationService>())); filters.Add(new HandleErrorFilter()); }
public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.AddAuthorizationFilter(); filters.AddUnauthorizedAccessExceptionFilter(); filters.AddUnitOfWorkFilter(); filters.AddValidationFilter(); filters.Add(new GoogleAnalyticsViewBagFilter(() => DependencyResolver.Current.GetService <GoogleAnalyticsConfiguration>())); filters.Add(new UrlsViewBagFilter(() => DependencyResolver.Current.GetService <IEmployerUrls>())); }