From e34840fbb892e9abb5360fc8cb4abb8cba7b804d Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Fri, 29 Aug 2025 18:27:35 +0530 Subject: [PATCH] Added the entity Id in get list API --- Marco.Pms.Services/Controllers/DocumentController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Controllers/DocumentController.cs b/Marco.Pms.Services/Controllers/DocumentController.cs index 4e986a6..cb0d5fc 100644 --- a/Marco.Pms.Services/Controllers/DocumentController.cs +++ b/Marco.Pms.Services/Controllers/DocumentController.cs @@ -112,7 +112,8 @@ namespace Marco.Pms.Services.Controllers .ThenInclude(e => e!.JobRole) .Include(da => da.DocumentType!) .ThenInclude(dt => dt.DocumentCategory) - .Where(da => da.DocumentType != null && + .Where(da => da.EntityId == entityId && + da.DocumentType != null && da.DocumentType.DocumentCategory != null && da.DocumentType.DocumentCategory.EntityTypeId == entityTypeId && da.IsActive == isActive &&