private async void ContentDialog_SecondaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { if (thisBook.ID > 0) { thisBook = await APIServices.PutBookAsync(thisBook); } else { thisBook = await APIServices.AddBookAsync(thisBook); } }