내 기본 경로는 다음과 같습니다.추가 경로는 어떻게 추가합니까?
context.MapRoute(
"CreditReview",
"Site/{sitecode}/CreditReview/{controller}/{action}/{id}",
new { action = "Index", id = "" }
);
'상태'를 추가하려고합니다. 이것은 내가 현재 가지고있는 것이며 작동하지 않습니다. 나는이 질문에 대답하기가 쉽지 않으면 미안합니다.
context.MapRoute(
"CC",
"Site/{sitecode}/CreditReview/{controller}/{status}/{action}/{id}",
new { action = "Index", id = "" });
어떤 주문을 받았습니까? 나는 두 번째 것이 제일 먼저 생각한다. 최소한의 특정 경로는 가장 구체적인 경로 앞에옵니다. 또한 두 MapRoutes 모두에 라우팅하려는 예제 URL을 제공 할 수 있습니까? –
나는 마지막에 나열된 기본 경로를 가지고있다. 기본 경로와 일치하는 URL의 예는 다음과 같습니다. http : //localhost/CreditCoachPlus.Site/Site/ABC123/CreditReview/PersonalInformation/Info 내가 일하려고하는 예는 다음과 같습니다. 다음과 같습니다 : http : //localhost/CreditCoachPlus.Site/Site/ABC123/CreditReview/PersonalInformation/Info/Correct –