I am using asp.net mvc2 and would like my site to show details (of 123) if a user enters foo.com/123. What is the route value I should specify for this, and in what order? I tried
routes.MapRoute(
name: "foobar",
url: "{id}",
defaults: new { controller = "foo", action = "bar", id = UrlParameter.Optional }
);
but I get a 404.
Any help is appreciated.