void RegisterExceptionRedirects(ExceptionRouteCollection routes)
 {
     routes.MapRoute <Exception>(new { controller = "Home", action = "Error" });
     routes.MapRoute <InvalidOperationException>(new { controller = "Home", action = "Error" });
 }
 void RegisterExceptionRedirects(ExceptionRouteCollection routes)
 {
     routes.MapRoute<Exception>(new { controller = "Home", action = "Error" });
     routes.MapRoute<InvalidOperationException>(new { controller = "Home", action = "Error" });
 }
 static ExceptionRouteTable()
 {
     Routes = new ExceptionRouteCollection();
 }