From c8cb25e1a9cf98a814b85552d86003da2517ef19 Mon Sep 17 00:00:00 2001 From: harid Date: Thu, 20 Nov 2025 15:34:36 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B9=83=E0=B8=AB=E0=B9=89?= =?UTF-8?q?=E0=B9=80=E0=B8=8A=E0=B9=87=E0=B8=84=E0=B8=A7=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/CandidateService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index 811df0e..07daa19 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -665,7 +665,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services EditorCondition = exam.EditorCondition, EditorConfirm = exam.EditorConfirm, Position = candidatePosition == null ? false : true, - CanRegister = exam.RegisterStartDate == null || exam.RegisterEndDate == null ? true : DateOnly.FromDateTime(exam.RegisterStartDate.Value) <= DateOnly.FromDateTime(DateTime.Now) && DateOnly.FromDateTime(exam.RegisterEndDate.Value) >= DateOnly.FromDateTime(DateTime.Now), + //CanRegister = exam.RegisterStartDate == null || exam.RegisterEndDate == null ? true : DateOnly.FromDateTime(exam.RegisterStartDate.Value) <= DateOnly.FromDateTime(DateTime.Now) && DateOnly.FromDateTime(exam.RegisterEndDate.Value) >= DateOnly.FromDateTime(DateTime.Now), + CanRegister = exam.RegisterStartDate == null || exam.RegisterEndDate == null + ? true + : exam.RegisterStartDate.Value <= DateTime.Now && exam.RegisterEndDate.Value >= DateTime.Now, RegisterEndDate = exam.RegisterEndDate, RegisterStartDate = exam.RegisterStartDate, graduationYearLock = exam.GraduationYearLock,