modifica componentiVT 2

This commit is contained in:
Marco Audiffredi 2025-03-03 12:28:53 +01:00
parent 6f1ddbd883
commit 49131a7f78
2 changed files with 10 additions and 6 deletions

Binary file not shown.

View File

@ -8605,14 +8605,18 @@ namespace ApiPolo.Controllers
try
{
string ten = getClaimValueByToken(token, "tenant");
List<Compo_Impia> lst = new List<Compo_Impia>();
_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)
{