เพิ่มเก็บคะแนนภาค ข ค
This commit is contained in:
parent
096648cce1
commit
0273a37503
9 changed files with 1816 additions and 25 deletions
|
|
@ -879,6 +879,40 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
|
||||
var file = Request.Form.Files[0];
|
||||
await _candidateService.UpdateAsyncPaymentImage(examId, positionId, file);
|
||||
// await _candidateService.UserCheckCandidateService(examId, positionId, "checkPayment");
|
||||
|
||||
return Success();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
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>
|
||||
[HttpPost("payment-image/{examId:length(36)}/{positionId:length(36)}"), DisableRequestSizeLimit]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> ConfirmPaymentCandidateService(string examId, string positionId)
|
||||
{
|
||||
try
|
||||
{
|
||||
// if (Request.Form.Files == null || Request.Form.Files.Count == 0)
|
||||
// {
|
||||
// return Error(GlobalMessages.NoFileToUpload);
|
||||
// }
|
||||
|
||||
// var file = Request.Form.Files[0];
|
||||
// await _candidateService.UpdateAsyncPaymentImage(examId, positionId, file);
|
||||
await _candidateService.UserCheckCandidateService(examId, positionId, "checkPayment");
|
||||
|
||||
return Success();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue