From 3a6210fda0ea7d0c79c1268c45553604df495437 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 26 Jul 2023 19:51:40 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=82=E0=B9=88=E0=B8=87=E0=B8=82?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=94=E0=B8=B9=E0=B8=8A=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=A3=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controllers/RecruitController.cs | 12 +++++++++++- ....GeneratedMSBuildEditorConfig.editorconfig | 4 ++-- .../BMA.EHR.Recruit.Service.assets.cache | Bin 175495 -> 175495 bytes 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Controllers/RecruitController.cs b/Controllers/RecruitController.cs index cef7a99..b604456 100644 --- a/Controllers/RecruitController.cs +++ b/Controllers/RecruitController.cs @@ -1368,7 +1368,7 @@ namespace BMA.EHR.Recruit.Service.Controllers } [HttpPost("exam/{id:length(36)}")] - public ActionResult GetExamResultById([FromBody] RecruitExamRequest req, Guid id) + public async Task> GetExamResultById([FromBody] RecruitExamRequest req, Guid id) { try { @@ -1474,11 +1474,21 @@ namespace BMA.EHR.Recruit.Service.Controllers }; } } + var period = await _context.RecruitImports.AsQueryable() + .Select(x => new + { + x.Id, + Year = x.Year.ToThaiYear(), + x.Order, + x.Name, + }) + .FirstOrDefaultAsync(x => x.Id == id); return Success(new { data = data, header = header, + period = period, }); } catch (Exception ex) diff --git a/obj/Debug/net7.0/BMA.EHR.Recruit.Service.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net7.0/BMA.EHR.Recruit.Service.GeneratedMSBuildEditorConfig.editorconfig index 8287ce8..3799f01 100644 --- a/obj/Debug/net7.0/BMA.EHR.Recruit.Service.GeneratedMSBuildEditorConfig.editorconfig +++ b/obj/Debug/net7.0/BMA.EHR.Recruit.Service.GeneratedMSBuildEditorConfig.editorconfig @@ -9,9 +9,9 @@ build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = BMA.EHR.Recruit.Service build_property.RootNamespace = BMA.EHR.Recruit.Service -build_property.ProjectDir = D:\BMA-EHR-RECRUIT-SERVICE\ +build_property.ProjectDir = d:\BMA-EHR-RECRUIT-SERVICE\ build_property.RazorLangVersion = 7.0 build_property.SupportLocalizedComponentNames = build_property.GenerateRazorMetadataSourceChecksumAttributes = -build_property.MSBuildProjectDirectory = D:\BMA-EHR-RECRUIT-SERVICE +build_property.MSBuildProjectDirectory = d:\BMA-EHR-RECRUIT-SERVICE build_property._RazorSourceGeneratorDebug = diff --git a/obj/Debug/net7.0/BMA.EHR.Recruit.Service.assets.cache b/obj/Debug/net7.0/BMA.EHR.Recruit.Service.assets.cache index e133100d21510a97e4defd3dc7cee10a8d28a261..78593159fe517c29fcbadfc65cb5d5eb2c9b17e5 100644 GIT binary patch delta 57 zcmZp_&DDOJOC!MB-I0fZfgw_@zRXm|_0Ye5wH;sG9HToYNQH?2ZtTw1x8XbecOrEWGHcwNK~q P#2JAog(v~FC<0%tvYr_g