5.2: Create View
Last updated
Last updated
In this module we will add a view for creating a note.
In the ElevenNote.WebMVC -> Controllers folder, open the NoteController.cs
file.
Right click on the Create()
method
Select Add View.
Fill it out like this:
This will create a Create.cshtml
file in the Notes
directory.
Run the app.
Append /Note/Create to the end of your url. You should see the Create view.
Next, we'll make a small change to the NoteCreate
and NoteListItem
models.