In this section, we will begin implementing the code for our BookLibrary application that will be responsible for communicating and interacting with our Razor template pages, as well as handling the actions associated with each Razor template page. The WebViewController class will communicate with and use our BookDatabase class in order to handle the addition, retrieval, and deletion of book items.
Let's start by updating the WebViewController.cs by going through the following steps:
- Locate and open the WebViewController.cs file, which is located in the BookLibrary project, and ensure that it is displayed within the code editor. Enter the following highlighted code sections:
// // WebViewController.cs ...