I am developing an asp.net MVC5 (C#) application . I found an answer for my question, link as given (Load data from database in _layout.cshtml), But in the answer they are using SQL Connection to fetch data form database. How can I fetch data form database by using Entity Frame Work and load it in _layout.cshtml. You can consider same example as in the above link provides.

Related posts

Recent Viewed