|
@@ -47,7 +47,7 @@ namespace TEAMModelBI.Controllers.BITeacher
|
|
|
//if ($"{site}".Equals(BIConst.Global))
|
|
|
// cosmosClient = _azureCosmos.GetCosmosClient(name: BIConst.Global);
|
|
|
|
|
|
- List<SchoolTeacher> teachers = new();
|
|
|
+ List<ScTch> teachers = new();
|
|
|
string sqlTxt = "";
|
|
|
if (!string.IsNullOrEmpty($"{tmdId}"))
|
|
|
{
|
|
@@ -65,12 +65,12 @@ namespace TEAMModelBI.Controllers.BITeacher
|
|
|
{
|
|
|
foreach (var obj in json.RootElement.GetProperty("Documents").EnumerateArray())
|
|
|
{
|
|
|
- SchoolTeacher schoolTeacher = new();
|
|
|
- schoolTeacher.id = obj.GetProperty("id").GetString();
|
|
|
- schoolTeacher.code = obj.GetProperty("code").GetString();
|
|
|
- schoolTeacher.name = obj.GetProperty("name").GetString();
|
|
|
- schoolTeacher.picture = obj.GetProperty("picture").GetString();
|
|
|
- teachers.Add(schoolTeacher);
|
|
|
+ ScTch scTch = new();
|
|
|
+ scTch.id = obj.GetProperty("id").GetString();
|
|
|
+ scTch.code = obj.GetProperty("code").GetString();
|
|
|
+ scTch.name = obj.GetProperty("name").GetString();
|
|
|
+ scTch.picture = obj.GetProperty("picture").GetString();
|
|
|
+ teachers.Add(scTch);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -112,7 +112,7 @@ namespace TEAMModelBI.Controllers.BITeacher
|
|
|
return Ok(new { state = 200, teachers = objs });
|
|
|
}
|
|
|
|
|
|
- public record SchoolTeacher
|
|
|
+ public record ScTch
|
|
|
{
|
|
|
public string id { get; set; }
|
|
|
|