บันทึกทะเบียนประวัติuserถึงแก่กรรม

This commit is contained in:
Kittapath 2023-08-11 12:08:48 +07:00
parent 75c4cb0f08
commit 243700bd53

View file

@ -215,6 +215,9 @@ namespace BMA.EHR.Retirement.Service.Controllers
.FirstOrDefaultAsync(x => x.Id == req.ProfileId);
if (profile == null)
return Error(GlobalMessages.DataNotFound, 404);
profile.LeaveDate = DateTime.Now;
profile.IsLeave = true;
profile.LeaveReason = "DEATH";
var retirementDeceased = new RetirementDeceased
{