ルート:
routes.MapRoute(
"Items", // Route name
"{controller}/{action}/{id}", // URL with parameters
new {controller = "Item", action = "Index", id = UrlParameter.Optional} // Parameter defaults
);
htmlhelper:
@Html.ActionLink("Chairs", "List", "Item", new {id="Chairs"}, null)
それが生成するリンク:
http://localhost:57899/Item/List?id=Chairs
私が見せたいもの:
http://localhost:57899/Item/List/Chairs
どうやってするか?