Example #1
0
        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
            await todoTable.UpdateAsync(item);

            items.Remove(item);
        }
Example #2
0
        // new: hard-delete todo records
        private async void DeleteTodoItem(TodoItem item)
        {
            await todoTable.DeleteAsync(item);

            items.Remove(item);
        }