From eb8047e7adb94a0f76ec8cef3086acbe978e6e02 Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Mon, 3 Apr 2023 11:21:47 +0700 Subject: [PATCH] Update CandidateService.cs --- Services/CandidateService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index 94d9810..3b1b568 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -258,6 +258,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(); @@ -276,6 +277,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services throw new Exception(GlobalMessages.ExamNotFound); var candidate = await _context.Candidates.AsQueryable() + .Include(x=>x.PaymentImg) .Where(x => x.PeriodExam == exam && x.UserId == UserId) .FirstOrDefaultAsync();