Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 private void Confrim_Button_Clicked(object sender, RoutedEventArgs e)
 {
     var userItem = new Users { UserName = _username, UserId = user.UserId };
     InsertUserSingleItem(userItem);
 }