我在 Global.asax.cs 中有以下 URL 映射:
routes.MapRoute("RejectRevision", "{controller}/{Index}/{revisionId}"
, new { controller = "RejectRevision", action = "Index", revisionId = "" });
但我不想输入http://localhost:9999/RejectRevision/Index/1,我希望能够输入http://localhost:9999/RejectRevision/1以点击 Index 操作在 RejectRevision 控制器上。我在这里想念什么?
谢谢。