@@ -75,12 +75,9 @@ public OperationResult UpdateEntityGroup(AdvEntitySearchableGroupEditModel editM
7575 {
7676 var core = _coreHelper . GetCore ( ) ;
7777 var entityGroup = core . EntityGroupRead ( editModel . GroupUid ) ;
78- //entityGroup.EntityGroupItemLst = editModel.AdvEntitySearchableItemModels;
79- //entityGroup.Name = editModel.Name;
80- //core.EntityGroupUpdate(entityGroup);
78+
8179 if ( editModel . AdvEntitySearchableItemModels . Any ( ) )
8280 {
83- //var entityGroup = core.EntityGroupRead(groupCreate.MicrotingUUID);
8481 var nextItemUid = entityGroup . EntityGroupItemLst . Count ;
8582 List < int > currentIds = new List < int > ( ) ;
8683
@@ -96,8 +93,6 @@ public OperationResult UpdateEntityGroup(AdvEntitySearchableGroupEditModel editM
9693 core . EntityItemUpdate ( entityItem . Id , entityItem . Name , entityItem . Description , entityItem . EntityItemUId , entityItem . DisplayIndex ) ;
9794 currentIds . Add ( entityItem . Id ) ;
9895 }
99- //entityGroup.EntityGroupItemLst.Add(new EntityItem(entityItem.Name,
100- // entityItem.Description, nextItemUid.ToString(), Constants.WorkflowStates.Created));
10196 nextItemUid ++ ;
10297 }
10398 foreach ( EntityItem entityItem in entityGroup . EntityGroupItemLst )
@@ -107,7 +102,6 @@ public OperationResult UpdateEntityGroup(AdvEntitySearchableGroupEditModel editM
107102 core . EntityItemDelete ( entityItem . Id ) ;
108103 }
109104 }
110- //core.EntityGroupUpdate(entityGroup);
111105 }
112106 return new OperationResult ( true , LocaleHelper . GetString ( "ParamUpdatedSuccessfully" , editModel . GroupUid ) ) ;
113107 }
0 commit comments