Owais Bin Rizwan

0

votes
1

answer
6

views

Can a _Layout.cshtml have a controller

I want to add navigation from database in _Layout.cshtml. I've created a controller for this and create _Layout.cshtml as a list view but its not working This is my view code @model IEnumerable @ViewBag.Title - My ASP.NET Application @Styles.Render('~/Content/css') @Scripts.Render('~/bundles/moderni...
Owais Bin Rizwan