From my controller in the area Admin I call, through my view, my _MasterLayout.cshtml in root. The “_MasterLayout.cshtml” have this code:
@{Html.RenderAction("Top", "Module", new {area=""});}
The problem is that it finds multiple controllers with the same name, one in root and one in area Admin. How do I limit the search for that controller to just root?
Thanks!
Have you added the namespace parameter to RegisterRoutes in Global.asax and in RegisterArea in your AreaRegistrations?
Like this
And this in Global.asax