public async Task BoughtItem(ShoppingItems item) { item.Bought = true; await client.GetTable <ShoppingItems>().UpdateAsync(item); ShoppingList.Remove(item); }
public async Task ItemAdd(Entry item) { if (!string.IsNullOrEmpty(item.Text)) { var newItem = new ShoppingItems { Bought = false, Item = item.Text }; await client.GetTable <ShoppingItems>().InsertAsync(newItem); ShoppingList.Insert(0, newItem); } }