0
I have a static class that carries language in relation to cookie stored or the URL. Throughout controller I have to insert once the following method:
protected override void Initialize(System.Web.Routing.RequestContext requestContext)
{
LanguageCookieController.Load(); //Método que carrega
base.Initialize(requestContext);
}
But there were cases where I forgot to add these calls and so all the views of controller X does not load the language the user is.
How do I run this Initialize()
not only in one controller, but in all, including those to be added?
Did the answer resolve what was in doubt? Do you need something else to be improved? Do you think it is possible to accept it now?
– Maniero