call api key in repo genaric
This commit is contained in:
parent
451d5d28bc
commit
169b3428e7
3 changed files with 40 additions and 24 deletions
|
|
@ -10777,8 +10777,9 @@ namespace BMA.EHR.Application.Repositories.Commands
|
|||
});
|
||||
|
||||
var apiPath = $"{_configuration["API"]}/org/dotnet/user-oc/{UserId}";
|
||||
var apiKey = _configuration["API_KEY"];
|
||||
|
||||
var apiResult = GetExternalAPIAsync(apiPath, token ?? "");
|
||||
var apiResult = GetExternalAPIAsync(apiPath, token ?? "", apiKey);
|
||||
|
||||
if (apiResult.Result != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue