private void ButtonSave_Click(object sender, RoutedEventArgs e)
 {
     var todoItem = new TodoItem { Text = TextInput.Text };
     InsertTodoItem(todoItem);
 }
        private async void InsertTodoItem(TodoItem todoItem)
        {
            // TODO: Delete or comment the following statement; Mobile Services auto-generates the ID. 
            //       You can also leave this line if you want to generate your own unique id values.

            //// This code inserts a new TodoItem into the database. When the operation completes 
            //// and Mobile Services has assigned an Id, the item is added to the CollectionView 
            //// TODO: Mark this method as "async" and uncomment the following statement. 
            await todoTable.InsertAsync(todoItem);

            items.Add(todoItem);
        }
 private async void UpdateCheckedTodoItem(TodoItem item)
 {
     //// This code takes a freshly completed TodoItem and updates the database. When the MobileService  
     //// responds, the item is removed from the list. 
     //// TODO: Mark this method as "async" and uncomment the following statement 
     await todoTable.UpdateAsync(item);
 }