แก้ model

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2023-09-05 11:38:43 +07:00
parent d8031bff98
commit a31b72316e
8 changed files with 48 additions and 46 deletions

View file

@ -409,10 +409,11 @@ namespace BMA.EHR.Profile.Service.Services
{
try
{
var level = (from alv in _context.AvailablePositionLevels
join lv in _context.PositionLevels on alv.PositionLevelId equals lv.Id
var level = (from alv in _context.AvailablePositionLevels.Include(x => x.PositionLevel)
// join lv in _context.PositionLevels on alv.PositionLevelId equals lv.Id
where alv.PositionMasterId == id
select lv.Name).ToList();
where alv.PositionLevel != null
select alv.PositionLevel.Name).ToList();
var count = 0;