แก้ path call ฟยร
This commit is contained in:
parent
0b13d5ccf2
commit
e556eeb314
21 changed files with 60 additions and 60 deletions
|
|
@ -352,7 +352,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
var profiles = new List<OrgRequestArrayData>();
|
||||
if (req.Type.Trim().ToUpper().Contains("OFFICER"))
|
||||
{
|
||||
var apiUrl = $"{_configuration["API"]}org/profile/profileid/retire/{req.Year}";
|
||||
var apiUrl = $"{_configuration["API"]}/org/profile/profileid/retire/{req.Year}";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
|
|
@ -368,7 +368,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
var apiUrl = $"{_configuration["API"]}org/profile-employee/profileid/retire/{req.Year}";
|
||||
var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/retire/{req.Year}";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
|
|
@ -889,7 +889,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
|
||||
if (retire.Type == "OFFICER")
|
||||
{
|
||||
var apiUrl = $"{_configuration["API"]}org/profile/profileid/position/{req.ProfileId}";
|
||||
var apiUrl = $"{_configuration["API"]}/org/profile/profileid/position/{req.ProfileId}";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
var data = new RetirementProfile
|
||||
|
|
@ -958,7 +958,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
var apiUrl = $"{_configuration["API"]}org/profile-employee/profileid/position/{req.ProfileId}";
|
||||
var apiUrl = $"{_configuration["API"]}/org/profile-employee/profileid/position/{req.ProfileId}";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
var data = new RetirementProfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue