public override void OnAudit(IDeleteRequestHandler handler) { if (handler.Row == null || captureLogHandler == null) { return; } Row newRow = null; // if row is not actually deleted, but set to deleted by a flag, log it as if it is an update operation if (handler.Row is IIsActiveDeletedRow) { newRow = handler.Row.Clone(); ((IIsActiveDeletedRow)newRow).IsActiveField[newRow] = -1; } captureLogHandler.Log(handler.UnitOfWork, handler.Row, newRow, Authorization.UserId); }