ย้ายคนจากสรรหาไปบรรจุ

This commit is contained in:
Kittapath 2023-07-25 23:45:35 +07:00
parent afd9994783
commit 9a53f34107
15 changed files with 846 additions and 260 deletions

View file

@ -832,6 +832,31 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
return Error(ex);
}
}
/// <summary>
/// โอนคนสรรหาไปบรรจุ
/// </summary>
/// <param name="examId">รหัสรอบสมัคร</param>
/// <returns></returns>
/// <response code="200">เมื่อโอนคนสรรหาไปบรรจุสำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("placement/{examId:length(36)}")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> UpdateAsyncCandidateToPlacement(Guid examId)
{
try
{
await _periodExamService.UpdateAsyncCandidateToPlacement(examId);
return Success();
}
catch (Exception ex)
{
return Error(ex);
}
}
#endregion
}
}