diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index a17b742e6..42723632e 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -418,7 +418,10 @@ public class AuditDocumentService(IRepository _auditDocumentRepos })).CurrentPageData; List auditDocumentAddOrEdits = _mapper.Map>(data); - auditDocumentAddOrEdits.ForEach(x => x.IsUpdate = false); + auditDocumentAddOrEdits.ForEach(x => { + x.IsUpdate = false; + x.Id = null; + }); await addData(auditDocumentAddOrEdits); } @@ -432,7 +435,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos item.Children.ForEach(x => { x.ParentId = result.Id; x.IsUpdate = false; - + x.Id = null; }); if (item.Children.Count() > 0)