How to get Localized resourse for Model Data.
I have searched enough on web and getting examples for only getting resource from .resx file.
[Required(ErrorMessageResourceName = "LogOnModel_UserName_Required",
ErrorMessageResourceType = typeof(Resources.Global))]
[LocalizationDisplayName("LogOnModel_UserName_DisplayName",
typeof(Resources.Global))]
But I need to get from Database.
I have created my own localisation helper class but how to pass the HttContextBase from Model. I am able to pass the context from Controller as well as View. But not in this.
Any help is greatly appreciated.
Thanks