i am trying to route error Page not found in my application, if any route is wrong then display Error Route.
my default route below
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
routes.MapRoute(
"NotFound",
"{*.}",
new { controller = "Error", action = "PageNotFound" }
);