update ordinamento fluxlog

This commit is contained in:
Samuele Locatelli
2022-10-07 18:32:56 +02:00
parent 0f9c01ae82
commit 75894fa3c7
+13 -4
View File
@@ -276,10 +276,19 @@ namespace MP.SPEC.Data
public List<FluxLog> convertToFluxLog(string Valore)
{
//string valStriped = Valore.Substring(7, Valore.Length - 8);
//var result = JsonConvert.DeserializeObject<List<FluxLog>>(valStriped);
var result = JsonConvert.DeserializeObject<DossierFluxLogDTO>(Valore);
return result.ODL;
List<FluxLog> answ = new List<FluxLog>();
DossierFluxLogDTO? result = JsonConvert.DeserializeObject<DossierFluxLogDTO>(Valore);
if (result != null)
{
if (result.ODL != null)
{
answ = result
.ODL
.OrderBy(x => x.CodFlux)
.ToList();
}
}
return answ;
}
public void Dispose()