Beispiel #1
0
        private void EmptyParentProductGroupOfFilterByParentProductGroups(Connector connector)
        {
            log.DebugFormat("");
            log.DebugFormat("------> Start Empty Parent Product Groups of Filter By Parent Product Groups");

            List <MasterGroupMapping> listOfProductGroups = filterByParentProductGroupService.GetListOfProductGroupsWithFilterByParent(connector);
            var listOfParentProductGroups = listOfProductGroups.Where(x => x.ParentMasterGroupMappingID != null).Select(x => x.ParentMasterGroupMappingID).Distinct();

            listOfParentProductGroups.ForEach(masterGroupMappingID =>
            {
                masterGroupMappingRepo.DeleteProductsByMasterGroupMappingID(masterGroupMappingID.Value);
            });
        }