diff --git a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs index beb55f6b1..b8577426a 100644 --- a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs @@ -167,6 +167,7 @@ namespace IRaCIS.Core.Application.Service public async Task DeleteAttachment(DeleteAttachment inDto) { var success = await _attachmentrepository.DeleteFromQueryAsync(t => inDto.Ids.Contains(t.Id)); + await _attachmentrepository.SaveChangesAsync(); return ResponseOutput.Ok(); } diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs index 336a7f51e..53a6899d5 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs @@ -10,6 +10,8 @@ public string FullPath { get; set; } = string.Empty; public string FileName { get; set; } = string.Empty; public DateTime? CreateTime { get; set; } + + public DateTime? UpdateTime { get; set; } public int Language { get; set; } public bool ReUpload { get; set; } = false;