From 6f4aaa9a4942cba4680fb9511d69d0b2b213d111 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Tue, 3 Jun 2025 17:01:16 +0200 Subject: [PATCH] correzione codici chiusura --- ApiPolo/Controllers/PoloController.cs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/ApiPolo/Controllers/PoloController.cs b/ApiPolo/Controllers/PoloController.cs index c6985d8..5800d44 100644 --- a/ApiPolo/Controllers/PoloController.cs +++ b/ApiPolo/Controllers/PoloController.cs @@ -4230,6 +4230,7 @@ namespace ApiPolo.Controllers { string ten = getClaimValueByToken(token, "tenant"); string tenConf = getClaimValueByToken(token, "tenantConfigurazioni"); + if (string.IsNullOrEmpty(ten)) { ten = tenConf; @@ -4237,18 +4238,15 @@ namespace ApiPolo.Controllers _chiusure = _VT_chiu.Chiu; - //switch (ten) - //{ - // case Clienti.VT: - // _chiusure = _VT_chiu.Chiu; - // ten = getClaimValueByToken(token, "tenant2"); + switch (ten) + { + case Clienti.VT: + _chiusure = _VT_chiu.Chiu; + ten = getClaimValueByToken(token, "tenant2"); + + break; + } - // break; - // default: - // _chiusure = getChiusureByTenant(ten); - // break; - //} - var l = await _chiusure.Where(c => c.cccodazi.Equals(ten)).ToListAsync(); //per DISCOVERY devo riempire anche gli abbinamenti con il tipo manutenzione //switch (ten)