Added the service ID and Organization ID in get project allocation API

This commit is contained in:
ashutosh.nehete 2025-09-27 10:33:42 +05:30
parent 70092e5601
commit a9b4b79ee4

View File

@ -753,8 +753,10 @@ namespace Marco.Pms.Services.Service
LastName = pa.Employee.LastName, LastName = pa.Employee.LastName,
MiddleName = pa.Employee.MiddleName, MiddleName = pa.Employee.MiddleName,
OrganizationId = pa.Employee.OrganizationId,
OrganizationName = pa.Employee.Organization!.Name, OrganizationName = pa.Employee.Organization!.Name,
ServiceId = pa.ServiceId,
ServiceName = pa.Service!.Name, ServiceName = pa.Service!.Name,
// Simplified JobRoleId logic: Use the allocation's role if it exists, otherwise fall back to the employee's default role. // Simplified JobRoleId logic: Use the allocation's role if it exists, otherwise fall back to the employee's default role.