เงื่อนไขเช็คแสดงสมัครสอบ
This commit is contained in:
parent
5264f67446
commit
10c695ae7e
2 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Response
|
||||||
public string? Image { get; set; }
|
public string? Image { get; set; }
|
||||||
public int? Year { get; set; }
|
public int? Year { get; set; }
|
||||||
public int? Round { get; set; }
|
public int? Round { get; set; }
|
||||||
|
public bool? CanRegister { get; set; }
|
||||||
public List<HomePageLinkResponseItem>? Images { get; set; }
|
public List<HomePageLinkResponseItem>? Images { get; set; }
|
||||||
public List<HomePageLinkResponseItem>? Files { get; set; }
|
public List<HomePageLinkResponseItem>? Files { get; set; }
|
||||||
public List<HomePageLinkResponseItem>? Positions { get; set; }
|
public List<HomePageLinkResponseItem>? Positions { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -507,6 +507,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
||||||
Path = $"{x.Id}/{s.Id}",
|
Path = $"{x.Id}/{s.Id}",
|
||||||
})
|
})
|
||||||
.ToList(),
|
.ToList(),
|
||||||
|
CanRegister = x.RegisterStartDate == null || x.RegisterEndDate == null ? true : DateOnly.FromDateTime(x.RegisterStartDate.Value) <= DateOnly.FromDateTime(DateTime.Now) && DateOnly.FromDateTime(x.RegisterEndDate.Value) >= DateOnly.FromDateTime(DateTime.Now),
|
||||||
})
|
})
|
||||||
.FirstOrDefaultAsync();
|
.FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue