I am writing an application using ASP.NET MVC 5 using c#. I have a need to add a global menu on the upper right hand side of the application. I was advised other SO to use a
Take ClientMenus
Action out of the BaseController
and put it into its own controller MenusController
. You can then call that controller from your Views.
@Html.Action("ClientsMenu", "Menus")
In your example you don't have a MenusContoller
which is what @Html.Action("ClientsMenu", "Menus")
is looking for.
The Phil Haacked - Html.RenderAction and Html.Action article linked to by the other post provided a good example for you to follow.