Added the Jobrole in attendance

This commit is contained in:
ashutosh.nehete 2025-09-21 16:37:15 +05:30
parent 777a72c71f
commit bd421d45aa

View File

@ -821,6 +821,8 @@ namespace MarcoBMS.Services.Controllers
var query = _context.ProjectAllocations var query = _context.ProjectAllocations
.Include(pa => pa.Employee) .Include(pa => pa.Employee)
.ThenInclude(e => e!.Organization) .ThenInclude(e => e!.Organization)
.Include(pa => pa.Employee)
.ThenInclude(e => e!.JobRole)
.Where(pa => pa.TenantId == tenantId && pa.ProjectId == projectId); .Where(pa => pa.TenantId == tenantId && pa.ProjectId == projectId);
// Apply filters based on optional parameters // Apply filters based on optional parameters