Target New old values when working with Audit.Webapi #533
Replies: 3 comments 1 reply
-
Please provide more information or an example of what are you looking for. What kind of values do you mean to save old and new? |
Beta Was this translation helpful? Give feedback.
-
Hi @thepirat000,
But with above code the issue is am able to log only one entity if i try to call it again, it will only save the auditscope1 and will ignore auditScope how can i save the auditScope and auditScope1 both within same method |
Beta Was this translation helpful? Give feedback.
-
Audit.WebApi creates one audit scope/audit event per HTTP call. It doesn't maintain any status between different calls, so the only way to co-relate these audit events is at the data level. If you need old/new values in the same audit event when updating an entity, then you should probably do the audit at the data access layer when updating the entity (i.e. using EntityFramework.Core + Audit.EntityFramework.Core) |
Beta Was this translation helpful? Give feedback.
-
Is there any way to save old and new values using Audit.WebApi,
can anyone share the flow for that
Beta Was this translation helpful? Give feedback.
All reactions