In this module we will add a view for creating a note.
In the ElevenNote.WebMVC -> Controllers folder, open the NoteController.cs file.
NoteController.cs
Right click on the Create() method
Create()
Select Add View.
Fill it out like this:
This will create a Create.cshtml file in the Notes directory.
Create.cshtml
Notes
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.
NoteCreate
NoteListItem
Last updated 7 years ago