@@ -70,6 +70,7 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> AddAuditDocument(List<AuditDocumentAddOrEdit> inDto)
|
||||
{
|
||||
List<Guid> resultData = new List<Guid>();
|
||||
inDto.ForEach(x => x.IsUpdate = false);
|
||||
await addData(inDto);
|
||||
|
||||
@@ -79,6 +80,7 @@ public class AuditDocumentService(IRepository<AuditDocument> _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<AuditDocument> _auditDocumentRepos
|
||||
}
|
||||
}
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
return ResponseOutput.Ok(resultData);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user