In the previous section, we created and implemented the BookLibraryListing
Razor template that will be used to display a list of all books that have been previously added to the BookLibrary
application. Our next step is to begin creating the Razor template that will allow the user to create a new book and save this to our database model.
Let's begin by performing the following steps:
Create an empty class within the
Views
folder, by choosing Add | New File..., as you did when creating theBookLibraryListing
in the previous section entitled Creating and implementing the book listing main page, located within this chapter.Next, choose the Preprocessed Razor Template option, located within the Text Templating section, and enter in
BookLibraryAdd
.Next, click on the New button to allow the wizard to proceed and create the new empty Razor template file.
Our next step is to start to implement the code required for our BookLibraryAdd
Razor...