This is an instructor-guided exercise to learn about MVCs
- Right click on the
Index
method in yourStudentsController
. - Choose
Add View..
. - In the window that appears, provide a name of
Index
, template isList
, and then choose theStudent
model. - Click
Add
and wait for the Razor template to be generated.
Now you start the project, and visit http://localhost:5000/students in your browser to see the HTML representation of student you have in your database.
The next step is to create the Details
view, the Edit
view, and the Delete
view. Use the scaffolding for MVC View to create the Razor templates for each one. Don't attempt to build the create view until you get to the next chapter about View Models.