public static void RegisterGlobalFilters(GlobalFilterCollection filters) { if (filters != null) { filters.Add(new HandleErrorAttribute()); } } }