|
@@ -374,8 +374,6 @@ namespace TEAMModelOS.Controllers
|
|
defaultSchool = null,
|
|
defaultSchool = null,
|
|
schools = new List<TmdUser.School>(),
|
|
schools = new List<TmdUser.School>(),
|
|
};
|
|
};
|
|
- var container = _azureStorage.GetBlobContainerClient(id);
|
|
|
|
- await container.CreateIfNotExistsAsync(PublicAccessType.None); //嘗試創建Teacher私有容器,如存在則不做任何事,保障容器一定存在
|
|
|
|
tmduser = await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").CreateItemAsync<TmdUser>(tmduser, new PartitionKey("Base"));
|
|
tmduser = await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").CreateItemAsync<TmdUser>(tmduser, new PartitionKey("Base"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -457,8 +455,6 @@ namespace TEAMModelOS.Controllers
|
|
defaultSchool = null,
|
|
defaultSchool = null,
|
|
schools = new List<TmdUser.School>(),
|
|
schools = new List<TmdUser.School>(),
|
|
};
|
|
};
|
|
- var container = _azureStorage.GetBlobContainerClient(userid);
|
|
|
|
- await container.CreateIfNotExistsAsync(PublicAccessType.None); //嘗試創建Teacher私有容器,如存在則不做任何事,保障容器一定存在
|
|
|
|
tmduser = await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").CreateItemAsync<TmdUser>(tmduser, new PartitionKey("Base"));
|
|
tmduser = await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").CreateItemAsync<TmdUser>(tmduser, new PartitionKey("Base"));
|
|
}
|
|
}
|
|
}
|
|
}
|