カスタムMapRouteがあります
context.MapRoute("participantByGender",
"Admin/Participants/{id}/{gender}",
new {
controller = "Admin",
action = "Participants",
id = UrlParameter.Optional,
gender = UrlParameter.Optional
}
IDとデフォルトの性別の両方を指定するリンクが必要です。私はこれを持っていますが、これはIDを選択するために機能しますが、リンクにIDと性別を含めるようにこれを変更するにはどうすればよいですか?
@Html.ActionLink("Participants", "Participants", new { id = item.termId })