From 90858c80d9921b555119f41060c1f883f6e6ffc5 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 26 十二月 2024 12:49:35 +0800
Subject: [PATCH] 提交

---
 DocumentServiceAPI.Application/DocManage/DocClassificationManageAppService.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/DocumentServiceAPI.Application/DocManage/DocClassificationManageAppService.cs b/DocumentServiceAPI.Application/DocManage/DocClassificationManageAppService.cs
index 7aebb93..71e816c 100644
--- a/DocumentServiceAPI.Application/DocManage/DocClassificationManageAppService.cs
+++ b/DocumentServiceAPI.Application/DocManage/DocClassificationManageAppService.cs
@@ -1,5 +1,6 @@
 锘縰sing DocumentServiceAPI.Application.DocManage.Dtos;
 using DocumentServiceAPI.Application.DocManage.Services;
+using DocumentServiceAPI.Application.ProjectInfo.Services.Interfaces;
 using DocumentServiceAPI.Model.cyDocumentModel;
 using DocumentServiceAPI.Utility;
 
@@ -11,10 +12,11 @@
     public class DocClassificationManageAppService : IDynamicApiController
     {
         private readonly DocClassificationService _classificationService;
-
-        public DocClassificationManageAppService(DocClassificationService classificationService)
+        private readonly IProjectInfoService _projectInfoService;
+        public DocClassificationManageAppService(DocClassificationService classificationService, IProjectInfoService projectInfoService)
         {
             _classificationService = classificationService;
+            _projectInfoService = projectInfoService;
         }
 
         /// <summary>
@@ -113,9 +115,9 @@
         /// </summary>
         /// <param name="id"></param>
         /// <returns></returns>
-        public async Task<IActionResult> PostDelInfo(int id)
+        public IActionResult PostDelInfo(int id)
         {
-            var msg = await _classificationService.DeleteByIdAsync(id);
+            var msg = _projectInfoService.GetDeleteDocClassification(id);
             return new JsonResult(msg);
         }
     }

--
Gitblit v1.9.1