ตัด step จัดที่สอบออก
This commit is contained in:
parent
e2106f9a16
commit
5c7a655a66
2 changed files with 13 additions and 4 deletions
|
|
@ -651,7 +651,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _candidateService.AdminCheckCandidateService(candidate, item.Status ? "checkSeat" : "rejectPayment", item);
|
await _candidateService.AdminCheckCandidateService(candidate, item.Status ? "done" : "rejectPayment", item);
|
||||||
|
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -129,9 +129,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
||||||
if (periodExam == null)
|
if (periodExam == null)
|
||||||
throw new Exception(GlobalMessages.ExamNotFound);
|
throw new Exception(GlobalMessages.ExamNotFound);
|
||||||
|
|
||||||
return await _context.Candidates.AsQueryable()
|
if (status == "all")
|
||||||
.Where(x => x.PeriodExam == periodExam && x.Status == status)
|
{
|
||||||
.ToListAsync();
|
return await _context.Candidates.AsQueryable()
|
||||||
|
.Where(x => x.PeriodExam == periodExam && x.Status != "register" && x.Status != "rejectRegister")
|
||||||
|
.ToListAsync();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return await _context.Candidates.AsQueryable()
|
||||||
|
.Where(x => x.PeriodExam == periodExam && x.Status == status)
|
||||||
|
.ToListAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue