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