This commit is contained in:
Suphonchai Phoonsawat 2025-04-22 13:31:54 +07:00
parent 2730ac9174
commit 56501b5bcd

View file

@ -1815,6 +1815,8 @@ namespace BMA.EHR.Leave.Service.Controllers
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> SendLeaveRequestAsync(Guid id,
[FromBody] LeaveRequestApproveDto req)
{
try
{
await _leaveRequestRepository.SendToOfficerAsync(id);
@ -1860,6 +1862,11 @@ namespace BMA.EHR.Leave.Service.Controllers
return Success();
}
catch (Exception ex)
{
return Error(ex);
}
}
/// <summary>
/// LV2_017 - ผู้มีอำนาจไม่อนุมัติการลา (ADMIN)