diff --git a/ApiPolo/Controllers/PoloController.cs b/ApiPolo/Controllers/PoloController.cs index e8230b7..31dff76 100644 --- a/ApiPolo/Controllers/PoloController.cs +++ b/ApiPolo/Controllers/PoloController.cs @@ -647,7 +647,7 @@ namespace ApiPolo.Controllers var calltec = await _chiamate.Where( t => t.chserial == ser_chiamata && t.chcodazi == ten - ).OrderBy(t => t.chdtapp).ToListAsync(); + ).OrderByDescending(t => t.chdtapp).ToListAsync(); return calltec.First(); } @@ -8447,6 +8447,7 @@ namespace ApiPolo.Controllers TabelleDominio td = new TabelleDominio(); string ten = getClaimValueByToken(token, "tenant"); + string ten2 = getClaimValueByToken(token, "tenant2"); //if(!ten.Equals(Clienti.VT)) //{ @@ -8461,6 +8462,7 @@ namespace ApiPolo.Controllers _codSegnVT = getVTCodiciSegnalaz(ten); var c = await _codSegnVT.Where(x => x.DataObso == null).ToListAsync(); + //c = await c.Where(x => x.cscodazi.Equals(ten2)).ToListAsync(); //td.statoImpianto = c; List si = new List(); diff --git a/ApiPolo/appsettings.json b/ApiPolo/appsettings.json index 1af19a4..5be9820 100644 --- a/ApiPolo/appsettings.json +++ b/ApiPolo/appsettings.json @@ -14,8 +14,8 @@ "ApiStr": "Data Source=dbsql01.poloinformatico.it;Initial Catalog=API_POLO;User Id=apipolo; Password=38HdflydkDrXI4l;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;Encrypt=False;TrustServerCertificate=True", //"ApiStr": "Data Source=MARCO_PC\\SQL_2022;Initial Catalog=API_POLO;User Id=sa; Password=p0l01nf.;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;Encrypt=False;TrustServerCertificate=True", - //"VIRTUAL_TASK": "Data Source=dbsql01.poloinformatico.it;Initial Catalog=VIRTUAL_TASK;User Id=apipolo; Password=38HdflydkDrXI4l;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;Encrypt=False;TrustServerCertificate=True" - "VIRTUAL_TASK": "Data Source=MARCO_PC\\SQL_2022;Initial Catalog=VIRTUAL_TASK;User Id=sa; Password=p0l01nf.;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", + "VIRTUAL_TASK": "Data Source=dbsql01.poloinformatico.it;Initial Catalog=VIRTUAL_TASK;User Id=apipolo; Password=38HdflydkDrXI4l;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;Encrypt=False;TrustServerCertificate=True" + //"VIRTUAL_TASK": "Data Source=MARCO_PC\\SQL_2022;Initial Catalog=VIRTUAL_TASK;User Id=sa; Password=p0l01nf.;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", //"VIRTUAL_TASK": "Data Source=172.25.30.1;Initial Catalog=VIRTUAL_TASK;User Id=sa; Password=p0l01nf.;Integrated Security=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" },