title: How to pass data to shared views in ASP MVC?
body: <p>I am new to ASP MVC. What I am trying to do is to pass data from database to layout view of the application.</p>
  
  <p>I have a layout for my application in which there is a side bar. It contains the title of the latest news/notices posted. I want the list to be available to all the pages of the application. The side bar is visible in all the pages. I have achieved this by defining a separate independent view(i.e a view without a controller).</p>
  
  <p>All the pages of the application inherit this view. I have used "RenderBody" method in the layout. Now, as the layout do not have any controller, how can I pass the data from database to this shared _Layout.cshtml page. </p>