Chnaged the log to check if sprid in used wile searching
This commit is contained in:
parent
64bde99ab5
commit
7e4d4b0f5b
@ -127,7 +127,7 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
.Take(pageSize)
|
.Take(pageSize)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
if (!organizations.Any())
|
if (!organizations.Any() && !sprid.HasValue)
|
||||||
{
|
{
|
||||||
organizations = await _context.Tenants.AsNoTracking()
|
organizations = await _context.Tenants.AsNoTracking()
|
||||||
.Include(t => t.Organization)
|
.Include(t => t.Organization)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user