routes.MapRoute( name: "Default", url: "{Name}", defaults: new { controller = "Home", action = "DefaultURL" } );
public ActionResult DefaultURL() { // i need name here }
routes.MapRoute( name: "Default", url: "{Name}", defaults: new { controller = "Home", action = "DefaultURL" } ); public ActionResult DefaultURL(string Name) // parameter should be same as url: { // i need name here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)