I am implementing globalization in asp.net mvc and i have resource key/values stored in a Global.resx file.
Now, i need to read all those resource values from that global.resx file and store them in a ViewBag so that i can access ViewBag value in mvc views.
I dont want to read the value using Resource.getValue(key,culture) option because that will make me to hard-code all the keys in the code, but instead i want to read all the values without specifying the key and store them all in the ViewBag.
Any idea would be greatly appreciated.
Resources.AppResource is in my case class that holds resource. See code below: