0
My Controller Action은 int id를 허용합니다. 문자열 ID로 View ActionLink에서 호출 할 때해야 할 일은 무엇입니까?Actionlink와 Controller Action 사이에서 다른 경로 값 유형을 처리하는 방법
My Controller Action은 int id를 허용합니다. 문자열 ID로 View ActionLink에서 호출 할 때해야 할 일은 무엇입니까?Actionlink와 Controller Action 사이에서 다른 경로 값 유형을 처리하는 방법
MVC 바인딩 인프라는 컨트롤러 작업 메서드를 호출하기 전에 문자열을 int로 변환합니다 (변환에 실패하면 예외를 throw합니다).