เพิ่ม Header

This commit is contained in:
Bright 2024-08-15 16:01:23 +07:00
parent c9e2c91ab4
commit 6a9e069920
21 changed files with 154 additions and 2 deletions

View file

@ -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,