From 90e86925edc4685354c7a007eea98e8e6955509c Mon Sep 17 00:00:00 2001 From: kittapath Date: Sun, 12 Oct 2025 14:53:35 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=8A=E0=B9=87=E0=B8=84=E0=B8=8B?= =?UTF-8?q?=E0=B9=89=E0=B8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/RecruitService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/RecruitService.cs b/Services/RecruitService.cs index 284cfb7..e4b1bea 100644 --- a/Services/RecruitService.cs +++ b/Services/RecruitService.cs @@ -196,8 +196,8 @@ namespace BMA.EHR.Recruit.Service.Services var _placement = await _contextMetadata.Placements.AsQueryable() .FirstOrDefaultAsync(x => x.PlacementType.Name == "สอบแข่งขัน" && x.RefId == recruitImport.Id); - // if (_placement != null) - // throw new Exception("รอบการสอบนี้ได้ทำการบรรจุไปแล้ว"); + if (_placement != null) + throw new Exception("รอบการสอบนี้ได้ทำการบรรจุไปแล้ว"); // 🚀 Pre-load all lookup data once var placementTypesCache = await _contextMetadata.PlacementTypes.ToListAsync();