Hello
I have a view that both edits and creates "usergroups". And I have a "usergroup-detailsview" (Admin/Usergroup/43) where I have 2 links:
Html.RouteLink("Edit", "UsergroupEdit",
new { usergroupID = Model.Usergroup.UsergroupID })
Html.RouteLink("Create", "UsergroupCreate")
In my global.asax I got:
routes.MapRoute("UsergroupEdit", "Admin/Usergroup/Edit/{usergroupID}",
new { controller = "UsergroupsAdmin", action = "Edit" } );
routes.MapRoute("UsergroupCreate", "Admin/Usergroup/Edit",
new { controller = "UsergroupsAdmin", action = "Edit" } );
The first one where the int is passed in renders:
Admin/Usergroup/Edit/87
But the second one renders like:
Admin?Length=24
How can I fix this route?
/M