จีดลำดับเครื่องราช

This commit is contained in:
Kittapath 2023-09-15 16:57:09 +07:00
parent d29a54678c
commit e42d9c439d

View file

@ -635,8 +635,9 @@ namespace BMA.EHR.Retirement.Service.Controllers
if (profile.RetirementPeriod.RetirementPeriodHistorys.Count() == 0) if (profile.RetirementPeriod.RetirementPeriodHistorys.Count() == 0)
{ {
await GenOrderByYear(profile.RetirementPeriod.Id);
_context.RetirementProfiles.Remove(profile); _context.RetirementProfiles.Remove(profile);
_context.SaveChanges();
await GenOrderByYear(profile.RetirementPeriod.Id);
} }
else else
{ {