แก้ออกคำสั่ง

This commit is contained in:
kittapath 2024-10-07 22:35:34 +07:00
parent d128960111
commit 85d9754db6
8 changed files with 124 additions and 103 deletions

View file

@ -1927,7 +1927,7 @@ $"คำขอลาออกของ {updated.prefix}{updated.firstName} {upda
var placementProfiles = await _context.RetirementResigns
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "DONECANCEL");
placementProfiles.ForEach(profile => profile.Status = "REPORT");
await _context.SaveChangesAsync();
return Success();
}
@ -1945,9 +1945,9 @@ $"คำขอลาออกของ {updated.prefix}{updated.firstName} {upda
{
var placementProfiles = await _context.RetirementResigns
.Where(x => req.refIds.Contains(x.Id.ToString()))
.Where(x => x.Status.ToUpper() == "DONECANCEL")
.Where(x => x.Status.ToUpper() == "REPORT")
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "DONE");
placementProfiles.ForEach(profile => profile.Status = "DONECANCEL");
await _context.SaveChangesAsync();
return Success();
}