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,