Changed the response

This commit is contained in:
ashutosh.nehete 2025-12-13 16:03:48 +05:30
parent 89c529695c
commit d04af2747b

View File

@ -956,9 +956,9 @@ namespace Marco.Pms.Services.Service
JobRoleName = jobRoles.Where(jr => jr.Id == (pa.JobRoleId ?? pa.Employee.JobRoleId)).Select(jr => jr.Name).FirstOrDefault() ?? pa.Employee.JobRole!.Name JobRoleName = jobRoles.Where(jr => jr.Id == (pa.JobRoleId ?? pa.Employee.JobRoleId)).Select(jr => jr.Name).FirstOrDefault() ?? pa.Employee.JobRole!.Name
}).ToList(); }).ToList();
_logger.LogInfo("Successfully fetched {AllocationCount} allocations for project {ProjectId}.", allocations.Count, projectId); _logger.LogInfo("Successfully fetched {AllocationCount} allocations for project {ProjectId}.", response.Count, projectId);
return ApiResponse<object>.SuccessResponse(allocations, "Project allocations retrieved successfully.", 200); return ApiResponse<object>.SuccessResponse(response, "Project allocations retrieved successfully.", 200);
} }
catch (Exception ex) catch (Exception ex)
{ {