I have an admin area in my ASP.Net MVC project. I want to perform some CRUD operations in that admin area. For that I have to make some model classes. I have completed creating action methods and views.
Should I make the model classes in area model folder or root model folder? I have a dbcontext class for my code first approach in root folder. how can I make object of that dbcontext in admin area home controller?
How to access model classes from area to root controller and vice versa?
You can access to
dbcontext (EF_Sample)incontroller (HomeController)like this: