From 7e4d4b0f5b7ea93056b092fc3fc7e75383b77a62 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Tue, 30 Sep 2025 11:40:43 +0530 Subject: [PATCH] Chnaged the log to check if sprid in used wile searching --- Marco.Pms.Services/Controllers/OrganizationController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Controllers/OrganizationController.cs b/Marco.Pms.Services/Controllers/OrganizationController.cs index 5d3f150..c90a883 100644 --- a/Marco.Pms.Services/Controllers/OrganizationController.cs +++ b/Marco.Pms.Services/Controllers/OrganizationController.cs @@ -127,7 +127,7 @@ namespace Marco.Pms.Services.Controllers .Take(pageSize) .ToListAsync(); - if (!organizations.Any()) + if (!organizations.Any() && !sprid.HasValue) { organizations = await _context.Tenants.AsNoTracking() .Include(t => t.Organization)