pass throw update message for CreateNewEntity

This commit is contained in:
Pilzinsel64
2025-04-01 09:50:26 +02:00
parent 6d6f780b91
commit ca20e0ce12
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ public abstract class BaseChildItemHandler<TEntity, TParent, TUpdateMsg>(IApiSer
{
if (!server.Manager.Find(parent, out TParent? parentEntity))
return ApiResult.NotFound();
var entity = CreateNewEntity();
var entity = CreateNewEntity(msg);
if (UpdateEntity(entity, msg) is ApiResult result)
return result;
GetChilds(parentEntity).Add(entity);