api review

This commit is contained in:
Kittapath 2023-05-04 15:49:46 +07:00
parent 9d61daf66c
commit 34806a0bc2
10 changed files with 3098 additions and 213 deletions

View file

@ -1347,6 +1347,33 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
return Error(ex);
}
}
/// <summary>
/// โหลดใบชำระเงิน
/// </summary>
/// <param name="examId">รหัสรอบสมัคร</param>
/// <param name="positionId">Id ตำแหน่งสมัครสอบ</param>
/// <returns></returns>
/// <response code="200">เมื่อทำการโหลดใบชำระเงิน สำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpPut("review/{examId:length(36)}/{positionId:length(36)}")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> UpdateReviewAsyncCandidate(string examId, string positionId, RequestReview item)
{
try
{
await _candidateService.UpdateReviewAsyncCandidate(examId, positionId, item);
return Success();
}
catch (Exception ex)
{
return Error(ex);
}
}
#endregion
}
}