O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the BaseViewModel class to include our RestWebService

Now we have created both our RestWebService interface and class, which will allow us to communicate with the Microsoft Azure platform, as well as our SQL Server database to perform CRUD operations, that will enable us to create, retrieve, update, and delete walk entries.

Our next step is to update the underlying C# code within our BaseViewModel class. Since our BaseViewModel class is used by each of our instances of ViewModel, it makes sense to add these additional properties and instance methods within the BaseViewModel class.

Let's start by updating the BaseViewModel class for our TrackMyWalks app by going through the following steps:

  1. Locate and open the BaseViewModel.cs file, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required