title: Get Data from DB in Layout page in ASP.NET MVC
body: <p>I want to load data in navbar after fetching data from DB in Layout.cshtml page in ASP.NET MVC. But I am facing a Problem that how to fetch data in layout page as there is no Controller unlike Code Behind file in Web Forms.
  Anyone please help me that:
   - How to store data in Data Model
   - How to pass it to Layout page
  Thanks in advance.</p>