| | |
| | | using DocumentServiceAPI.Application.DocManage.Dtos; |
| | | using DocumentServiceAPI.Application.DocManage.Services; |
| | | using DocumentServiceAPI.Application.ProjectInfo.Services.Interfaces; |
| | | using DocumentServiceAPI.Model.cyDocumentModel; |
| | | using DocumentServiceAPI.Utility; |
| | | |
| | |
| | | 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> |
| | |
| | | /// </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); |
| | | } |
| | | } |