Is it possible to access the DisplayNameAttributes that are used on my ViewData.Model so I can Localize them before sending them to the view? Something like this:
Public Void OnActionExecuted(ActionExecutedContext: filterContext) {
foreach (DisplayNameAttribute attr in filterContext...) {
attr.TheValue = AppMessages.GetLocazation(attr.TheValue);
}
}
What I'm missing is how to access the attributes. Is this possible at all?
P.S: We're using vb.net at my job and it's infiltrating my brain. So apologies if my C# is a tad off.