Skip to content

How to skip based on data? #565

Answered by thepirat000
avialonn asked this question in Q&A
Discussion options

You must be logged in to vote

You can return a boolean false from your AuditEntityAction to indicate you don't want to save the audit:

 .AuditEntityAction<MyLog>((evt, entry, auditEntity) =>
{
  if (condition) return false;

  return true;
}))

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by avialonn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants