FilterConfig.cs 492 B

123456789101112131415161718
  1. using System.Web;
  2. using System.Web.Mvc;
  3. using EMIS.Web.Filters;
  4. using EMIS.Web.Controls.Filters;
  5. namespace EMIS.Web
  6. {
  7. public class FilterConfig
  8. {
  9. public static void RegisterGlobalFilters(GlobalFilterCollection filters)
  10. {
  11. //filters.Add(new StatisticsTrackerAttribute());
  12. filters.Add(new HandleErrorAttribute());
  13. filters.Add(new ServiceControllerAttribute());
  14. //filters.Add(new AuthorizeAttribute());
  15. }
  16. }
  17. }