add orderyby search data list
This commit is contained in:
parent
806fadc24f
commit
e830632ac6
17 changed files with 3493 additions and 1239 deletions
|
|
@ -405,6 +405,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
|||
|
||||
var document = await _context.CandidateDocuments.AsQueryable()
|
||||
.Where(x => x.Candidate == candidate)
|
||||
.OrderBy(x => x.CreatedAt)
|
||||
.Select(x => new FileListResponse
|
||||
{
|
||||
Id = x.Document == null ? "" : x.Document.Id.ToString(),
|
||||
|
|
@ -1354,6 +1355,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
|||
|
||||
var periodExam = await _context.Candidates.AsQueryable()
|
||||
.Where(x => x.PeriodExam == candidate.PeriodExam && x.ExamIdenNumber != null)
|
||||
.OrderByDescending(d => d.CreatedAt)
|
||||
.ToListAsync();
|
||||
|
||||
if (periodExam == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue