แก้รายงานเครื่องราชย์ + ปรับ api call profileById ไปใช้ api ใหม่

This commit is contained in:
Suphonchai Phoonsawat 2024-06-30 21:01:07 +07:00
parent 02c5d5b6ca
commit 8f318e62da
3 changed files with 594 additions and 592 deletions

View file

@ -450,7 +450,7 @@ namespace BMA.EHR.Application.Repositories
{ {
try try
{ {
var apiPath = $"{_configuration["API"]}/org/profile/{id}"; var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{id}";
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? ""); var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "");
if (apiResult.Result != null) if (apiResult.Result != null)

View file

@ -90,6 +90,8 @@ namespace BMA.EHR.Application.Responses.Profiles
public string PositionLevel { get; set; } = string.Empty; public string PositionLevel { get; set; } = string.Empty;
public string PositionType { get; set; } = string.Empty; public string PositionType { get; set; } = string.Empty;
public string Position { get; set; } = string.Empty;
} }
public class ProfileInsignia public class ProfileInsignia