From 464cfd4ecaaeb3f5a173aad6df845a63d8d963aa Mon Sep 17 00:00:00 2001 From: Kojo Date: Tue, 9 Dec 2025 20:52:27 +0100 Subject: [PATCH] KI Promptbausteine: Parent mit mappen --- .../AiPromptbausteinDC_AiPromptbaustein.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Service/DCEntityMapper/AiPromptbausteinDC_AiPromptbaustein.cs b/Service/DCEntityMapper/AiPromptbausteinDC_AiPromptbaustein.cs index df9f2a894..bb7656581 100644 --- a/Service/DCEntityMapper/AiPromptbausteinDC_AiPromptbaustein.cs +++ b/Service/DCEntityMapper/AiPromptbausteinDC_AiPromptbaustein.cs @@ -74,10 +74,14 @@ namespace BeWo.Service.DCEntityMapper dataContract.Name = entity.Name; dataContract.IsOnlyForEmployee = entity.IsOnlyForEmployee; dataContract.ActivationType = entity.IsActive; + dataContract.IsParent = entity.IsParent; if (entity.Employee != null) dataContract.Employee = MapperFactory.CompactEmployeeDC_Employee.MapToNewDC(entity.Employee); + if (entity.Parent != null) + dataContract.Parent = MapperFactory.AiPromptbausteinDC_AiPromptbaustein.MapToNewDC(entity.Parent); + return dataContract; } @@ -91,11 +95,13 @@ namespace BeWo.Service.DCEntityMapper entity.Name = dataContract.Name; entity.IsOnlyForEmployee = dataContract.IsOnlyForEmployee; entity.IsActive = dataContract.ActivationType; + entity.IsParent = dataContract.IsParent; if (dataContract.Employee != null) - { entity.Employee = DAOFactory.GenericDAO.LoadByID(dataContract.Employee.EmployeeOid); - } + + if (dataContract.Parent != null) + entity.Parent = DAOFactory.GenericDAO.LoadByID(dataContract.Parent.Oid.Value); return entity; }