|
@@ -141,9 +141,18 @@ namespace TEAMModelOS.Controllers
|
|
|
foreach (var obj in json.RootElement.GetProperty("Documents").EnumerateArray())
|
|
|
{
|
|
|
StudentArtResult student = obj.ToObject<StudentArtResult>();
|
|
|
- if (results.FindAll(x => x.id.Equals(student.id)) == null) {
|
|
|
+ if (results.Any())
|
|
|
+ {
|
|
|
+ if (!results.Exists(x => x.id.Equals(student.id)))
|
|
|
+ {
|
|
|
+ results.Add(student);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
results.Add(student);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
continuationToken = item.GetContinuationToken();
|