|
@@ -494,7 +494,15 @@ namespace TEAMModelBI.Controllers.Census
|
|
|
[HttpPost("get-scstats")]
|
|
|
public async Task<IActionResult> GetSchoolStats(JsonElement jsonElement)
|
|
|
{
|
|
|
- if (!jsonElement.TryGetProperty("scId", out JsonElement scId)) return BadRequest();
|
|
|
+ if (!jsonElement.TryGetProperty("scId", out JsonElement scId)) return BadRequest();
|
|
|
+ var cosmosClinet = _azureCosmos.GetCosmosClient();
|
|
|
+
|
|
|
+ StatsInfo statsInfo = new();
|
|
|
+ var resStats = cosmosClinet.GetContainer(Constant.TEAMModelOS, "School").ReadItemStreamAsync($"{scId}", new PartitionKey(""));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
return Ok(new { state = RespondCode.Ok});
|