default MVC mapping is
Indexmethod in your controller didn’t do much work; it simply ran the statement
return View(), which specified that the method should use a view template file to render a response to the browser.
RenderBodyis a placeholder where all the view-specific pages you create show up
A view template should never perform business logic or interact with a database directly.
ViewBagis a dynamic object, which means you can put whatever you want in to it; the
ViewBagobject has no defined properties until you put something inside it.
MovieDBContextclass represents the Entity Framework movie database context, which handles fetching, storing, and updating
Movieclass instances in a database. The
MovieDBContextderives from the
DbContextbase class provided by the Entity Framework.
The main class that coordinates Entity Framework functionality for a given data model is the
DAL (for Data Access Layer).