You may have to be careful with the route as you ask, because it can catch more than intended.
One way is to restrict this route with restrictions, if possible.
eg. Verify that the identifier is numeric ...
routes.MapRoute("ActionRoute", "{action}/{id}", new { controller = "Home", action = "Index", id="1" }, new { id = @"\d{1,6}" } );
Thus, you can indicate your default common route at the end to catch other routes on the site, if necessary.
source share