เครื่องราชเช็คตามรายการ

This commit is contained in:
kittapath 2024-11-14 11:00:22 +07:00
parent 2efc1910f6
commit a951378b1f
21 changed files with 57711 additions and 61 deletions

View file

@ -70,9 +70,6 @@ namespace BMA.EHR.Infrastructure.MessageQueue
#region " Properties "
private bool? RoleAdmin => _httpContextAccessor?.HttpContext?.User?.IsInRole("admin");
private bool? RoleInsignia1 => _httpContextAccessor?.HttpContext?.User?.IsInRole("insignia1");
private bool? RoleInsignia2 => _httpContextAccessor?.HttpContext?.User?.IsInRole("insignia2");
private string? AccessToken => _httpContextAccessor?.HttpContext?.Request.Headers["Authorization"];
#endregion
@ -113,7 +110,7 @@ namespace BMA.EHR.Infrastructure.MessageQueue
if (requestStatus == null)
{
// บันทึกรายชื่อ
await insigniaRepo.InsertCandidate(period, organization.Id, candidate);
await insigniaRepo.InsertCandidate(period, organization.Id,organization.OrgRootName, candidate);
}
}
}