เพิ่ม Header
This commit is contained in:
parent
c9e2c91ab4
commit
6a9e069920
21 changed files with 154 additions and 2 deletions
|
|
@ -460,6 +460,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken.Replace("Bearer ", ""));
|
||||
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
|
||||
var _res = await client.PostAsJsonAsync(apiUrlSalary, new
|
||||
{
|
||||
profileId = profile.Id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue