I have umbraco 7.1.1 site. I have webapi method returns back a string. The string is constructed from a template. The issue I am having is that when in webapi i do GetDictionaryItem I get nothing back.
The key and value definately exist becuase if I do GetDictionaryItem in template it works. How make it works?
Ismail answer same question on umbraco 4.7.1 and he solved this by globalization directive in web.config. In my web.config I have added:
GetDictionaryItem doesn't work in WebAPI
I have umbraco 7.1.1 site. I have webapi method returns back a string. The string is constructed from a template. The issue I am having is that when in webapi i do GetDictionaryItem I get nothing back. The key and value definately exist becuase if I do GetDictionaryItem in template it works. How make it works?
Ismail answer same question on umbraco 4.7.1 and he solved this by globalization directive in web.config. In my web.config I have added:
But DictionaryItem still return empty string.
Regards
Anton
is working on a reply...