2
I have the route of my area
context.MapRoute(
"Cadastro_default",
"{Empresa}/Cadastro/{controller}/{action}/{id}",
new { empresa = Empresa.GetEmpresa(), action = "Index", id = UrlParameter.Optional }
);
But it does not execute the Getempresa() method during navigation
You are using the route mechanism wrong. I will reply.
– Leonel Sanches da Silva
I saw in an article, the guy used something similar, but not with areas :/
– Rod