Now that we have updated our WalkEntryPage user interface to include our ActivityIndicator, as well as made some changes to the code-behind file for the SaveWalkItem_Click method, we can now proceed to update the WalksEntryPageViewModel class so it can use our AzureDatabase property to save walk entries to our SQL Server database.
Let's take a look at how we can achieve this by going through the following steps:
- Locate and open the WalkEntryPageViewModel.cs file, which is located in the ViewModels folder, and ensure that it is displayed within the code editor. Enter the following highlighted code sections:
// // WalkEntryPageViewModel.cs // The ViewModel for our WalkEntryPage ContentPage // ...