2010-01-14 3 views

답변

1

예. 그런 다음 모든 작업에 자동으로 적용됩니다.

[MyFilter] 
public class MyController : Controller { 

    // automatically has MyFilter logic attached to it 
    public ViewResult MyAction() { 
    } 

} 
1

예, ActionFilter 속성을 액션 레벨 대신 클래스 레벨에 두는 것만 큼 간단합니다.

관련 문제