コントローラーのアクションがあります
public string Index(string id)
{
return id;
}
Global.asax.csにはこのルートしかありません
routes.MapRoute(
"Default",
"{id}",
new { controller = "Start", action = "Index", id = UrlParameter.Optional }
);
この「http:// localhost / stuff」や「http:// localhost/hello」のようなURLの場合は機能します。ただし、「http:// localhost / stuff/add」のようなURLでは機能しません。どうすれば修正できますか?