Included the jobrole when feaching employee list

This commit is contained in:
ashutosh.nehete 2025-07-17 15:31:05 +05:30
parent d1106bc86b
commit 0ec507c97c

View File

@ -81,6 +81,7 @@ namespace MarcoBMS.Services.Helpers
result = await _context.ProjectAllocations
.Include(pa => pa.Employee)
.ThenInclude(e => e!.JobRole)
.Where(c => c.ProjectId == ProjectId.Value && c.IsActive && c.Employee != null)
.Select(pa => pa.Employee!.ToEmployeeVMFromEmployee())
.ToListAsync();