บันทึกเวลาแก้ไขข้อมูลอุทธร
This commit is contained in:
parent
2ec737d601
commit
be10c7ef95
1 changed files with 7 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue