diff --git a/.vs/ApiPolo/v17/.suo b/.vs/ApiPolo/v17/.suo index 4ee2de7..50b0db5 100644 Binary files a/.vs/ApiPolo/v17/.suo and b/.vs/ApiPolo/v17/.suo differ diff --git a/ApiPolo/Controllers/PoloController.cs b/ApiPolo/Controllers/PoloController.cs index faf6e77..d60b46c 100644 --- a/ApiPolo/Controllers/PoloController.cs +++ b/ApiPolo/Controllers/PoloController.cs @@ -8605,14 +8605,18 @@ namespace ApiPolo.Controllers try { string ten = getClaimValueByToken(token, "tenant"); + List lst = new List(); - _compo = getComponentiByTenant(ten); + if(!ten.Equals(Clienti.VT)) + { + _compo = getComponentiByTenant(ten); - var co = await _compo.Where( - t => t.cocodimp == codimp - ).ToListAsync(); - - return StatusCode(StatusCodes.Status200OK, co); + var co = await _compo.Where( + t => t.cocodimp == codimp + ).ToListAsync(); + lst = co; + } + return StatusCode(StatusCodes.Status200OK, lst); } catch (Exception ex) {