Organization_Management #142
@ -639,6 +639,12 @@ namespace Marco.Pms.Services.Service
|
|||||||
projectAllocationQuery = projectAllocationQuery
|
projectAllocationQuery = projectAllocationQuery
|
||||||
.Where(pa => pa.Employee != null && pa.Employee.OrganizationId == organizationId.Value && pa.Employee.Organization != null);
|
.Where(pa => pa.Employee != null && pa.Employee.OrganizationId == organizationId.Value && pa.Employee.Organization != null);
|
||||||
}
|
}
|
||||||
|
// Conditionally apply the filter for service ID.
|
||||||
|
if (serviceId.HasValue)
|
||||||
|
{
|
||||||
|
projectAllocationQuery = projectAllocationQuery
|
||||||
|
.Where(pa => pa.Employee != null && pa.ServiceId == serviceId.Value);
|
||||||
|
}
|
||||||
|
|
||||||
var allocations = await projectAllocationQuery
|
var allocations = await projectAllocationQuery
|
||||||
.Select(pa => new
|
.Select(pa => new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user