public async Task<int> AddVisit(Visit visit) { SQLiteAsyncConnection conn = new SQLiteAsyncConnection(this.dbPath); if (visit.ID > 0) { return await conn.UpdateAsync(visit); } return await conn.InsertAsync(visit); }
public async Task<int> DeleteVisit(Visit visit) { SQLiteAsyncConnection conn = new SQLiteAsyncConnection(this.dbPath); return await conn.DeleteAsync(visit); }