diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 5e8b16ec..e61d1a10 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -348,7 +348,17 @@ namespace BMA.EHR.Retirement.Service.Controllers LastUpdateUserId = UserId ?? "", LastUpdatedAt = DateTime.Now, }; - var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; + var apiUrl = string.Empty; + if (req.profileType.Trim().ToUpper() == "EMPLOYEE") + { + + apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{req.Id}"; + } + else + { + apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.Id}"; + } + using (var client = new HttpClient()) { client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));