public async Task SaveTaskAsync(TorneoItem item) { if (item.Id == null) { await todoTable.InsertAsync(item); } else { await todoTable.UpdateAsync(item); } }
public async Task SaveTaskAsync(TorneoItem item) { try { if (item.Id == null) { await todoTable.InsertAsync(item); } else { await todoTable.UpdateAsync(item); } } catch (Exception ex) { string s = ex.Message; } }