public async Task IncrementCounterAsync(Counter counter) { var connection = new SQLiteAsyncConnection(_dbPath); counter.Value++; await AddOrUpdateCounterAsync(counter); var history = new CounterIncrementHistory { CounterId = counter.Id, IncrementDateTimeUtc = DateTime.UtcNow }; await connection.InsertAsync(history); }