Beispiel #1
0
        private List <CatalogItem> ComposeCatalogItems(List <CatalogItem> items)
        {
            var catalogTypes         = PreconfiguredData.GetPreconfiguredCatalogTypes();
            var catalogManufacturers = PreconfiguredData.GetPreconfiguredCatalogManufacturers();

            items.ForEach(i => i.CatalogManufacturer = catalogManufacturers.First(m => m.Id == i.CatalogManufacturerId));
            items.ForEach(i => i.CatalogType         = catalogTypes.First(t => t.Id == i.CatalogTypeId));
            items.ForEach(i => i.CatalogItemSpecs    = catalogItemSpecs.First(s => s.Id == i.CatalogItemSpecsId));

            return(items);
        }
Beispiel #2
0
 public IEnumerable <CatalogManufacturer> GetCatalogManufacturers()
 {
     return(PreconfiguredData.GetPreconfiguredCatalogManufacturers());
 }