fix #1337
This commit is contained in:
parent
2730ac9174
commit
56501b5bcd
1 changed files with 44 additions and 37 deletions
|
|
@ -1815,6 +1815,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||||
public async Task<ActionResult<ResponseObject>> SendLeaveRequestAsync(Guid id,
|
public async Task<ActionResult<ResponseObject>> SendLeaveRequestAsync(Guid id,
|
||||||
[FromBody] LeaveRequestApproveDto req)
|
[FromBody] LeaveRequestApproveDto req)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
await _leaveRequestRepository.SendToOfficerAsync(id);
|
await _leaveRequestRepository.SendToOfficerAsync(id);
|
||||||
|
|
||||||
|
|
@ -1860,6 +1862,11 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
|
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
return Error(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// LV2_017 - ผู้มีอำนาจไม่อนุมัติการลา (ADMIN)
|
/// LV2_017 - ผู้มีอำนาจไม่อนุมัติการลา (ADMIN)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue