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(); } } }