Organization_Management #142
@ -639,6 +639,12 @@ namespace Marco.Pms.Services.Service
|
||||
projectAllocationQuery = projectAllocationQuery
|
||||
.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
|
||||
.Select(pa => new
|
||||
|
Loading…
x
Reference in New Issue
Block a user