我正在使用以下路线
routes.MapRoute(
"PatientList",
"User/{SearchName}/{LocationID}/{Page}",
new { controller = "User", action = "Index", SearchName = "", LocationID = 0, Page = 1 }
);
它在以下 URL 上失败:/user//1/1
谁能告诉我我做错了什么?
我正在使用以下路线
routes.MapRoute(
"PatientList",
"User/{SearchName}/{LocationID}/{Page}",
new { controller = "User", action = "Index", SearchName = "", LocationID = 0, Page = 1 }
);
它在以下 URL 上失败:/user//1/1
谁能告诉我我做错了什么?