From bd421d45aa5f686c5c9e71952c8341c9689d86b8 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Sun, 21 Sep 2025 16:37:15 +0530 Subject: [PATCH] Added the Jobrole in attendance --- Marco.Pms.Services/Controllers/AttendanceController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Marco.Pms.Services/Controllers/AttendanceController.cs b/Marco.Pms.Services/Controllers/AttendanceController.cs index 121b8a2..3703c69 100644 --- a/Marco.Pms.Services/Controllers/AttendanceController.cs +++ b/Marco.Pms.Services/Controllers/AttendanceController.cs @@ -821,6 +821,8 @@ namespace MarcoBMS.Services.Controllers var query = _context.ProjectAllocations .Include(pa => pa.Employee) .ThenInclude(e => e!.Organization) + .Include(pa => pa.Employee) + .ThenInclude(e => e!.JobRole) .Where(pa => pa.TenantId == tenantId && pa.ProjectId == projectId); // Apply filters based on optional parameters