pass throw update message for CreateNewEntity
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user