private async void SaveDriverButton_Click(object sender, RoutedEventArgs e) { Driver driver = (Driver)this.DefaultViewModel["Driver"]; string driverId = driver.Id.ToString(); string response; if (this.pageMode == HelperClass.PageMode.Add) { response = await SampleDataSource.AddDriverItem(driver); driverId = response; } else { response = await SampleDataSource.UpdateDriver(driver); } MessageDialog msgbox = new MessageDialog("Pit stop completed!"); await msgbox.ShowAsync(); Frame.Navigate(typeof(ItemPage), driverId); }