调整 仓储,提出独立的添加和更新

This commit is contained in:
2022-04-15 10:11:41 +08:00
parent 4cbb37e1b5
commit 4cc64e1e21
5 changed files with 79 additions and 57 deletions
@@ -47,7 +47,7 @@ namespace IRaCIS.Core.Application.Service
VerifyMsg = "Document Code Can not Repeat."
};
var entity = await _commonDocumentRepository.InsertOrUpdateAsync(addOrEditCommonDocument, true, verifyExp1);
var entity = await _commonDocumentRepository.InsertFromDTOAsync(addOrEditCommonDocument, true, verifyExp1);
return ResponseOutput.Ok(entity.Id.ToString());