public async void Delete(EventInvites item) { // This code takes a freshly completed Events and updates the database. When the MobileService // responds, the item is removed from the list await mobileServiceTable.DeleteAsync(item); //items.Remove(item); }
public async Task<int> Insert(EventInvites item) { // This code inserts a new Events into the database. When the operation completes // and Mobile Services has assigned an Id, the item is added to the CollectionView await mobileServiceTable.InsertAsync(item); return item.Id; // items.Add(item); }
public async Task <int> Insert(EventInvites item) { // This code inserts a new Events into the database. When the operation completes // and Mobile Services has assigned an Id, the item is added to the CollectionView await mobileServiceTable.InsertAsync(item); return(item.Id); // items.Add(item); }