Mvc 4 のルーティングに問題があります
私のURLは次のようになります
http://localhost:portnumber/Session/View?Id=918&Pid=186
URLをこのようにしたい
http://localhost:portnumber/Session/View/918/186
私はこのようなビューを持っています
@Html.RouteLink("more..", "Default", new {Controller="Session",Action="View",Id=e.Id,Pid=e.Pid })
routes.MapRoute(
name: "SessionView",
url: "{controller}/{action}/{Id}/{Pid}",
defaults: new { controller = "Session", action = "view", Id = UrlParameter.Optional, Pid = UrlParameter.Optional }
);