This commit is contained in:
Bright 2025-01-21 12:51:25 +07:00
parent 43fb8a3b61
commit 92b1c01efc

View file

@ -596,6 +596,13 @@ namespace BMA.EHR.Retirement.Service.Controllers
var baseAPIOrg = _configuration["API"];
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave";
if (data.Count > 0)
{
if (data[0].profileType == "EMPLOYEE")
{
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave";
}
}
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));