modifica componentiVT 2
This commit is contained in:
parent
6f1ddbd883
commit
49131a7f78
Binary file not shown.
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user