public async Task SaveTaskAsync (Customers item) { if (item.ID == null) await custTable.InsertAsync(item); else await custTable.UpdateAsync(item); }
public async Task DeleteTaskAsync (Customers item) { try { await custTable.DeleteAsync(item); } catch (MobileServiceInvalidOperationException msioe) { Debug.WriteLine(@"INVALID {0}", msioe.Message); } catch (Exception e) { Debug.WriteLine(@"ERROR {0}", e.Message); } }