public async Task <int> InsertMeetUp(MeetupsTable meetUp) { var num = database.Insert(meetUp); database.Commit(); return(num); }
public async Task <bool> CheckIfExists(MeetupsTable meetUp) { await SyncAsync(true); var check = await azureSyncTable.Where(x => x.Id == meetUp.Id).ToListAsync(); return(check.Any()); }
public async Task <int> InsertMeetUp(MeetupsTable meetUp) { await SyncAsync(true); //opens await azureSyncTable.InsertAsync(meetUp); await SyncAsync(); //closes return(1); }
public async Task <bool> CheckIfExists(MeetupsTable meetUp) { var exist = database.Table <MeetupsTable>().Any(x => x.Id == meetUp.Id); return(exist); }