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); }
// new: hard-delete todo records private async void DeleteTodoItem(TodoItem item) { await todoTable.DeleteAsync(item); items.Remove(item); }