From be10c7ef952ee1e7a07e79933ac23d4dc4522cc1 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 13 Dec 2023 10:58:17 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6?= =?UTF-8?q?=E0=B8=81=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=E0=B9=81=E0=B8=81?= =?UTF-8?q?=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=AD=E0=B8=B8=E0=B8=97=E0=B8=98=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DisciplineComplaint_AppealController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs index 1f1e6815..ff4ef713 100644 --- a/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs +++ b/BMA.EHR.Discipline.Service/Controllers/DisciplineComplaint_AppealController.cs @@ -278,6 +278,9 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers } } } + data.LastUpdateFullName = FullName ?? "System Administrator"; + data.LastUpdateUserId = UserId ?? ""; + data.LastUpdatedAt = DateTime.Now; await _context.SaveChangesAsync(); return Success(); } @@ -309,6 +312,9 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers if (dataDocComplaint == null) { await _documentService.DeleteFileAsync(docId); + data.LastUpdateFullName = FullName ?? "System Administrator"; + data.LastUpdateUserId = UserId ?? ""; + data.LastUpdatedAt = DateTime.Now; await _context.SaveChangesAsync(); } return Success(); @@ -410,7 +416,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers data.LastUpdateUserId = UserId ?? ""; data.LastUpdatedAt = DateTime.Now; await _context.SaveChangesAsync(); - return Success(data); + return Success(); } } }