From 4c75e852293de93f02629dd4792e4d80eff1a9e7 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 15 Apr 2022 10:18:30 +0800 Subject: [PATCH] --- IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs b/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs index 057d1dbd2..a0bb8e1c9 100644 --- a/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Common/CommonDocumentService.cs @@ -47,7 +47,7 @@ namespace IRaCIS.Core.Application.Service VerifyMsg = "Document Code Can not Repeat." }; - var entity = await _commonDocumentRepository.InsertFromDTOAsync(addOrEditCommonDocument, true, verifyExp1); + var entity = await _commonDocumentRepository.InsertOrUpdateAsync(addOrEditCommonDocument, true, verifyExp1); return ResponseOutput.Ok(entity.Id.ToString());