From 7bd784bdd514528524a4471aa620246aa7ede690 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Wed, 14 May 2025 13:16:38 +0530 Subject: [PATCH] changed attendance to check-in date --- Marco.Pms.Services/Controllers/DashboardController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Controllers/DashboardController.cs b/Marco.Pms.Services/Controllers/DashboardController.cs index 41cb863..f8ce2a4 100644 --- a/Marco.Pms.Services/Controllers/DashboardController.cs +++ b/Marco.Pms.Services/Controllers/DashboardController.cs @@ -157,7 +157,7 @@ namespace Marco.Pms.Services.Controllers var Employees = await _context.Employees.Where(e => e.TenantId == tenantId && e.IsActive == true).Select(e => e.Id).ToListAsync(); - var checkedInEmployee = await _context.Attendes.Where(e => e.AttendanceDate.Date == date).Select(e => e.EmployeeID).ToListAsync(); + var checkedInEmployee = await _context.Attendes.Where(e => e.InTime != null ? e.InTime.Value.Date == date : false).Select(e => e.EmployeeID).ToListAsync(); TeamDashboardVM teamDashboardVM = new TeamDashboardVM {