From cf2dcb013e93e9982b475fb448fc91aaba0a40cf Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 31 Jan 2025 14:17:36 +0700 Subject: [PATCH] add CandidateId --- Response/PaymentImgResponse.cs | 1 + Services/CandidateService.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Response/PaymentImgResponse.cs b/Response/PaymentImgResponse.cs index 14c621b..17611f8 100644 --- a/Response/PaymentImgResponse.cs +++ b/Response/PaymentImgResponse.cs @@ -7,5 +7,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Response public string? PaymentImg { get; set; } public string? RejectDetail { get; set; } + public Guid? CandidateId { get; set; } } } diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index 2aa8bea..f0e7e9e 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -601,7 +601,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (candidate.PaymentImg != null) candidate.PaymentImg.Detail = _minioService.ImagesPath(candidate.PaymentImg.Id).Result; - return new PaymentImgResponse { PaymentImg = candidate.PaymentImg == null ? "" : candidate.PaymentImg.Detail, RejectDetail = candidate.RejectDetail }; + return new PaymentImgResponse { PaymentImg = candidate.PaymentImg == null ? "" : candidate.PaymentImg.Detail, RejectDetail = candidate.RejectDetail, CandidateId = candidate.Id }; } public async Task GetsAsyncPaymentImgCandidate(string candidateId)