Fix Bug #2088
This commit is contained in:
parent
f97cf818b9
commit
46d380613a
1 changed files with 4 additions and 4 deletions
|
|
@ -685,10 +685,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
||||||
if (exam == null)
|
if (exam == null)
|
||||||
throw new Exception(GlobalMessages.ExamNotFound);
|
throw new Exception(GlobalMessages.ExamNotFound);
|
||||||
|
|
||||||
if (exam.RegisterStartDate != null && exam.RegisterStartDate.Value.Date > DateTime.Now.Date)
|
if (exam.RegisterStartDate != null && exam.RegisterStartDate.Value > DateTime.Now)
|
||||||
throw new Exception("ยังไม่ถึงช่วงเวลาสมัครสอบ");
|
throw new Exception("ยังไม่ถึงช่วงเวลาสมัครสอบ");
|
||||||
|
|
||||||
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value.Date < DateTime.Now.Date)
|
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value < DateTime.Now)
|
||||||
throw new Exception("หมดเวลาช่วงสมัครสอบ");
|
throw new Exception("หมดเวลาช่วงสมัครสอบ");
|
||||||
|
|
||||||
var _candidate = await _context.Candidates.AsQueryable()
|
var _candidate = await _context.Candidates.AsQueryable()
|
||||||
|
|
@ -1985,10 +1985,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
||||||
if (exam == null)
|
if (exam == null)
|
||||||
throw new Exception(GlobalMessages.ExamNotFound);
|
throw new Exception(GlobalMessages.ExamNotFound);
|
||||||
|
|
||||||
if (exam.RegisterStartDate != null && exam.RegisterStartDate.Value.Date > DateTime.Now.Date)
|
if (exam.RegisterStartDate != null && exam.RegisterStartDate.Value > DateTime.Now)
|
||||||
throw new Exception("ยังไม่ถึงช่วงเวลาสมัครสอบ");
|
throw new Exception("ยังไม่ถึงช่วงเวลาสมัครสอบ");
|
||||||
|
|
||||||
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value.Date < DateTime.Now.Date)
|
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value < DateTime.Now)
|
||||||
throw new Exception("หมดเวลาช่วงสมัครสอบ");
|
throw new Exception("หมดเวลาช่วงสมัครสอบ");
|
||||||
|
|
||||||
var candidate = await _context.Candidates.AsQueryable()
|
var candidate = await _context.Candidates.AsQueryable()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue