in ContosoApp/Views/OrderDetailPage.xaml.cs [195:213]
private async void SaveButton_Click(object sender, RoutedEventArgs e)
{
try
{
await ViewModel.SaveOrderAsync();
Bindings.Update();
}
catch (OrderSavingException ex)
{
var dialog = new ContentDialog()
{
Title = "Unable to save",
Content = $"There was an error saving your order:\n{ex.Message}",
PrimaryButtonText = "OK"
};
await dialog.ShowAsync();
}
}