我的行动
public virtual ActionResult Show(string userId)
以及
public virtual ActionResult Show(int groupId)
在全球 我
routes.MapRoute(
"Group_Default",
"{controller}/{action}/{groupId}",
MVC.Groups.Show()
);
routes.MapRoute(
"UserProfile_Default",
"{controller}/{action}/{userId}",
MVC.Profile.Show()
);
Now when I request for group/show/...
it works fine. But when I call Profile/Show/...
parameter is null. But if I remove UserProfile_Default
then both works but profile URL contains question mark for parameter (以及 I want it clean like .../profile/show/5678
)
It seams that somehow one route block another.