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 e133100..7859315 100644 Binary files a/obj/Debug/net7.0/BMA.EHR.Recruit.Service.assets.cache and b/obj/Debug/net7.0/BMA.EHR.Recruit.Service.assets.cache differ