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 try
{ {
string ten = getClaimValueByToken(token, "tenant"); string ten = getClaimValueByToken(token, "tenant");
List<Compo_Impia> lst = new List<Compo_Impia>();
if(!ten.Equals(Clienti.VT))
{
_compo = getComponentiByTenant(ten); _compo = getComponentiByTenant(ten);
var co = await _compo.Where( var co = await _compo.Where(
t => t.cocodimp == codimp t => t.cocodimp == codimp
).ToListAsync(); ).ToListAsync();
lst = co;
return StatusCode(StatusCodes.Status200OK, co); }
return StatusCode(StatusCodes.Status200OK, lst);
} }
catch (Exception ex) catch (Exception ex)
{ {