Updating the WebViewController class using C#

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:

  1. 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 ...

Get Mastering Xamarin UI Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.