diff --git a/Models/Placement/PlacementProfile.cs b/Models/Placement/PlacementProfile.cs index e712d91..646dacf 100644 --- a/Models/Placement/PlacementProfile.cs +++ b/Models/Placement/PlacementProfile.cs @@ -22,6 +22,9 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("Id ตำแหน่งที่สอบได้")] public PositionPath? PositionCandidate { get; set; } + + [Comment("ตำแหน่งที่สอบได้")] + public string? positionName { get; set; } // [Comment("Id เลขที่ตำแหน่ง")] // public OrganizationPositionEntity? OrganizationPosition { get; set; } [Comment("วันที่บรรจุ")] diff --git a/Services/RecruitService.cs b/Services/RecruitService.cs index dd049a7..4d43b02 100644 --- a/Services/RecruitService.cs +++ b/Services/RecruitService.cs @@ -263,6 +263,7 @@ namespace BMA.EHR.Recruit.Service.Services { Placement = placement, PositionCandidate = await _contextMetadata.PositionPaths.FirstOrDefaultAsync(x => x.Name == candidate.PositionName), + positionName = candidate.PositionName, Prefix = candidate.Prefix, Firstname = candidate.FirstName, Lastname = candidate.LastName,