|
@@ -149,7 +149,7 @@ namespace TEAMModelOS.Services
|
|
|
schoolExtobj.area = area;
|
|
|
}
|
|
|
var sctch = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemStreamAsync(id, new PartitionKey($"Teacher-{sc.schoolId}"));
|
|
|
- if (sctch.Status == 200)
|
|
|
+ if (sctch.Status == 200 && sctch!= null && sctch.ContentStream!=null)
|
|
|
{
|
|
|
var jsonDoc = await JsonDocument.ParseAsync(sctch.ContentStream);
|
|
|
SchoolTeacher schoolTeacher = jsonDoc.RootElement.ToObject<SchoolTeacher>();
|