How to read GlobalResources in ASP.NET MVC Controller?

I cannot find a way to read resource values ​​in the controller

+3
source share
1 answer

If you are referring to string resources stored in App_GlobalResources, you can add

using Resources;

and access them through

Strings.<name of resource>

or use

Resources.Strings.<name of resource>
+7
source

All Articles