แก้ออกคำสั่ง
This commit is contained in:
parent
426d064476
commit
5a208ebb17
1 changed files with 4 additions and 3 deletions
|
|
@ -371,9 +371,10 @@ namespace BMA.EHR.Application.Repositories
|
|||
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey);
|
||||
if (apiResult.Result != null)
|
||||
{
|
||||
var raw = JsonConvert.DeserializeObject<GetUserOCIdResultDto>(apiResult.Result);
|
||||
if (raw != null)
|
||||
return raw.Result!.RootId;
|
||||
var raw = JsonConvert.DeserializeObject<GetUserOCIdDto>(apiResult.Result);
|
||||
if (raw == null || raw.RootId == null)
|
||||
return Guid.Empty;
|
||||
return raw.RootId;
|
||||
}
|
||||
|
||||
return Guid.Empty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue