private void UpdateRecord(ParcelExtractItem parcel, Action <ParcelDbaseRecord> updateFunc)
        {
            var record = new ParcelDbaseRecord();

            record.FromBytes(parcel.DbaseRecord, _encoding);

            updateFunc(record);

            parcel.DbaseRecord = record.ToBytes(_encoding);
        }
 private void UpdateStatus(ParcelExtractItem parcel, string status)
 => UpdateRecord(parcel, record => record.status.Value = status);
 private void UpdateVersie(ParcelExtractItem parcel, Instant version)
 => UpdateRecord(parcel, record => record.versieid.SetValue(version.ToBelgianDateTimeOffset()));
 private void SetDelete(ParcelExtractItem parcel)
 => UpdateRecord(parcel, record => record.IsDeleted = true);