how should my Global.asax file look, and the Controller's action, to get a URL like:
http://mysite.com/name
The name is a string - it may be anything.
I try:
Global.asax:
routes.MapRoute(
"ViewContent", // Route name
"{name}", // URL with parameters
new { controller = "Main", action = "ViewC" } // Parameter defaults
);
MainController:
public ActionResult ViewC(string name)
{
...
}
but it doesn't "go" inside that action.