문제

I want to access GetDictionaryItem() function in my custom Controller so i need the Context object, i am accessing data from the Custom controller by plain jquery Ajax.

i can access the GetdictionaryItem in my SurfaceController as below

var dictionaryHelper = new DictionaryHelper(_routableRequestContext.Application);
        string dearDictonaryItem = dictionaryHelper.GetDictionaryItemValueForLanguage("Common/Dear", Thread.CurrentThread.CurrentCulture.Name, "Dear");

But i also need it in my Custom Controller,

Thanks, Sher

도움이 되었습니까?

해결책

create custom controller as a surface controller,

Thanks to @seraphym

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top