2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-09-13 12:43:17 +00:00
This commit is contained in:
2025-08-24 22:10:35 +03:00
parent 490f3eeebd
commit 3ea7adaebc
13 changed files with 106 additions and 123 deletions

View File

@@ -38,8 +38,8 @@ namespace Esiur.Stores.MongoDB
[Export]
public async AsyncReply<T> New(string name = null, object properties = null)
{
var resource = Instance.Warehouse.CreateInstance<T>(properties);
await Instance.Warehouse.Put(name, resource, this, null, 0);
var resource = Instance.Warehouse.Create<T>(properties);
await Instance.Warehouse.Put(this.Instance.Name + "/" + name, resource);
resource.Instance.Managers.AddRange(this.Instance.Managers.ToArray());
return resource;
}