In my MVC web app I am to route all urls with exactly one url segment to the same controller action. Like for example:
http://example.com/onePage
Here's my action method in the controller:
public ActionResult SomeAction(string urlSegment)
{
...
}
Now, I want the url segment (like "onePage" from the example), to be sent as input to the action method.
Can you show what the MapRoute should look like to make this happen?