Esempio n. 1
0
        private async void UpdatePropertySets(string Id)
        {
            if (!string.IsNullOrEmpty(InnerItem.CatalogId))
            {
                var propSets = await Task.Run(() => _catalogRepositoryFactory.GetRepositoryInstance().PropertySets.ExpandAll().Where(x => x.CatalogId == InnerItem.CatalogId && (x.TargetType == "All" || x.TargetType == InnerItem.EntityImporter)));

                PropertySets = propSets.ToArray();
                if (PropertySets.Any() && string.IsNullOrEmpty(Id))
                {
                    InnerItem.PropertySetId = PropertySets.First().PropertySetId;
                }

                SetMappingItems();
            }
        }