เพิ่มวันประการศผลสอบ

This commit is contained in:
Kittapath 2023-04-28 11:44:59 +07:00
parent 2f01961dc5
commit be27aa4d33
14 changed files with 1994 additions and 260 deletions

View file

@ -1898,6 +1898,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
PointC = candidate.PointC,
ResultC = candidate.ResultC,
Pass = candidate.Pass,
AnnouncementDate = exam.AnnouncementDate.AddYears(2),
Id = candidate.Id,
};
}
@ -1906,6 +1907,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
{
var candidate = await _context.Candidates.AsQueryable()
.Include(x => x.ProfileImg)
.Include(x => x.PeriodExam)
.FirstOrDefaultAsync(x => x.Id == Guid.Parse(candidateId));
if (candidate == null)
@ -1927,6 +1929,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
PointC = candidate.PointC,
ResultC = candidate.ResultC,
Pass = candidate.Pass,
AnnouncementDate = candidate.PeriodExam?.AnnouncementDate.AddYears(2),
Id = candidate.Id,
};
}