แก้บัคแสดงข้อมูลการศึกษา

This commit is contained in:
Kittapath 2023-04-20 11:20:04 +07:00
parent eb567349b4
commit 56bc4e512f
4 changed files with 273 additions and 281 deletions

View file

@ -1435,6 +1435,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
throw new Exception(GlobalMessages.ExamNotFound);
var candidate = await _context.Candidates.AsQueryable()
.Include(x => x.ProfileImg)
.Where(x => x.PeriodExam == exam && x.UserId == UserId)
.FirstOrDefaultAsync();
@ -1456,6 +1457,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
return new RequestCardCandidate
{
Avatar = candidate.ProfileImg == null ? "" : _minioService.ImagesPath(candidate.ProfileImg.Id).Result,
FirstName = candidate.FirstName,
LastName = candidate.LastName,
Prefix = candidate.PrefixName,