This commit is contained in:
harid 2025-12-03 10:57:26 +07:00
parent f97cf818b9
commit 46d380613a

View file

@ -685,10 +685,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
if (exam == null)
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("ยังไม่ถึงช่วงเวลาสมัครสอบ");
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value.Date < DateTime.Now.Date)
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value < DateTime.Now)
throw new Exception("หมดเวลาช่วงสมัครสอบ");
var _candidate = await _context.Candidates.AsQueryable()
@ -1985,10 +1985,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
if (exam == null)
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("ยังไม่ถึงช่วงเวลาสมัครสอบ");
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value.Date < DateTime.Now.Date)
if (exam.RegisterEndDate != null && exam.RegisterEndDate.Value < DateTime.Now)
throw new Exception("หมดเวลาช่วงสมัครสอบ");
var candidate = await _context.Candidates.AsQueryable()