Part Three: Adding a view - matthewmorris41/MCVMovie2 GitHub Wiki
- what is a shared view? Which shared view are you using in your application?
A shared view is like a template, it has things that you will be using throughout the program. we are using Views>Shared>_Layout.cshtml as its shared view.
- what is the view bag?
View Bag is a dynamic object, which means you can put whatever you want in to it; the View Bag has objects has no defined properties until you put something inside it. we used a View Bag object to pass data from the controller to a view.
- What does the @Html directive do? What does the ActionLink method generate in your page?
The @html directive gets the dynamic HtmlHelper object that is used to render html elements and shows them to users. The ActionLink method returns an anchor element for the exact link text and action.