From 64bde99ab5fcabb88515213382c504c17c850724 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Tue, 30 Sep 2025 10:18:15 +0530 Subject: [PATCH] Corrected the check to add self organization --- 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 04e5d1a..5d3f150 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()) { organizations = await _context.Tenants.AsNoTracking() .Include(t => t.Organization)