แข่งขันดูชื่อรอบ

This commit is contained in:
Kittapath 2023-07-26 19:51:40 +07:00
parent 1a832061a9
commit 3a6210fda0
3 changed files with 13 additions and 3 deletions

View file

@ -1368,7 +1368,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
}
[HttpPost("exam/{id:length(36)}")]
public ActionResult<ResponseObject> GetExamResultById([FromBody] RecruitExamRequest req, Guid id)
public async Task<ActionResult<ResponseObject>> 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)

View file

@ -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 =