|
@@ -171,7 +171,13 @@ namespace TEAMModelOS.Controllers
|
|
|
int index = result.studentIds.IndexOf(studentId.ToString());
|
|
|
string FileName = result.examId + "/" + result.subjectId + "/" + studentId;
|
|
|
string blob = await _azureStorage.UploadFileByContainer(school.ToString(), ans.ToJsonString(), "exam", FileName + "/" + "ans.json");
|
|
|
- result.studentAnswers[index].Add(blob);
|
|
|
+ //result.studentAnswers[index].Add(blob);
|
|
|
+ if (result.mark.Count == 0) {
|
|
|
+ foreach (string ids in result.studentIds) {
|
|
|
+ result.mark.Add("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ result.mark[index] = blob;
|
|
|
classResult = await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(result, result.id, new PartitionKey($"{result.code}"));
|
|
|
}
|
|
|
|