private async void InsertUserSingleItem(Users userItem) { MobileServiceInvalidOperationException exception = null; try { await usersTable.InsertAsync(userItem); NavigationService.Navigate(new Uri("/AppLandingPage.xaml", UriKind.RelativeOrAbsolute)); } catch (MobileServiceInvalidOperationException e) { exception = e; } }
private void Confrim_Button_Clicked(object sender, RoutedEventArgs e) { var userItem = new Users { UserName = _username, UserId = user.UserId }; InsertUserSingleItem(userItem); }