This commit is contained in:
parent
acd931f6f0
commit
b1d198133f
4 changed files with 53 additions and 53 deletions
|
|
@ -654,18 +654,18 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
|
||||
}
|
||||
|
||||
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
|
||||
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
|
||||
{
|
||||
posMasterOldId = uppdated.posmasterId,
|
||||
posMasterId = req.posmasterId,
|
||||
profileId = uppdated.profileId,
|
||||
});
|
||||
}
|
||||
// var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book";
|
||||
// using (var client = new HttpClient())
|
||||
// {
|
||||
// client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
// client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
|
||||
// var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
|
||||
// {
|
||||
// posMasterOldId = uppdated.posmasterId,
|
||||
// posMasterId = req.posmasterId,
|
||||
// profileId = uppdated.profileId,
|
||||
// });
|
||||
// }
|
||||
uppdated.posmasterId = req.posmasterId;
|
||||
uppdated.node = req.node;
|
||||
uppdated.nodeId = req.nodeId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue