I am attempting to route a URL that does not have a static action i.e. Users can create systems which can be represented by any string. I would like to have a URL like the following:
http://yousite.com/System/WIN1234/Configure
By default the routing mechanism thinks that WIN1234 is the action, whereas I would like to be able to catch WIN1234 and make a decision on which method to throw. As in:
public void RouteSystemRequest(string system, string action)
{
switch (action)
{
case "Configure":
ConfigureSystem(string system);
break;
}
}
How can I accomplish this? Is this logical or am I thinking about this all wrong?
Thanks! George