diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index 5bea1d5e1..253041be8 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -70,6 +70,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos [HttpPost] public async Task AddAuditDocument(List inDto) { + List resultData = new List(); inDto.ForEach(x => x.IsUpdate = false); await addData(inDto); @@ -79,6 +80,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos { var result= await AddOrUpdateAuditDocument(item); + resultData.Add(result.Id); item.Children.ForEach(x => { x.ParentId = result.Id; x.IsUpdate = false; @@ -92,7 +94,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos } } - return ResponseOutput.Ok(); + return ResponseOutput.Ok(resultData); }