I am trying to rendering a partial view from _Layout.cshtml and getting error-
'Categories' is a type, which is not valid in the given context
@Html.RenderAction("_GuestNav", Categories);
How can i solve that error?
Picture attached for better understanding