I have a static class that loads the language against the cookie stored or the URL. In every controller I have to insert the following method once:
protected override void Initialize(System.Web.Routing.RequestContext requestContext)
{
LanguageCookieController.Load(); //Método que carrega
base.Initialize(requestContext);
}
But there have been cases where I forgot to add these calls and so all X controller views do not carry the language the user is on.
How do I execute this Initialize()
not only on a controller , but on all, including the ones that will be added?