public void OnGet(string vendor)
 {
     furnitureRepository = new FurnitureRepository(QueryMode.ByVendorCode, vendor);
     furnitureRepository.Initialize();
     Furniture = furnitureRepository.Items.FirstOrDefault();
     //
     Furniture.CategoryID     = Furniture.Category.ID;
     Furniture.ManufacturerID = Furniture.Manufacturer.ID;
     Furniture.CollectionID   = Furniture.Collection.ID;
     //
     CollectionRepository = new CollectionRepository();
     CollectionRepository.Initialize();
     //
     ManufacturerRepository = new ManufacturerRepository();
     ManufacturerRepository.Initialize();
     //
     CategoryRepository = new CategoryRepository();
     CategoryRepository.Initialize();
     //
     ColorRepository = new ColorRepository();
     ColorRepository.Initialize();
     //
     MaterialRepository = new MaterialRepository();
     MaterialRepository.Initialize();
 }
        public void OnGet()
        {
            CollectionRepository collectionRepository = new CollectionRepository();

            collectionRepository.Initialize();
            Collections = collectionRepository.Items.OrderBy(i => i.ID).ToList();
        }
 public void OnGet()
 {
     CollectionRepository = new CollectionRepository();
     CollectionRepository.Initialize();
     //
     ManufacturerRepository = new ManufacturerRepository();
     ManufacturerRepository.Initialize();
     //
     CategoryRepository = new CategoryRepository();
     CategoryRepository.Initialize();
 }
        public IndexModel()
        {
            CategoryRepository categoryRepository = new CategoryRepository();

            categoryRepository.Initialize();
            Categories = categoryRepository.Items.ToArray();
            //
            ManufacturerRepository manufacturerRepository = new ManufacturerRepository();

            manufacturerRepository.Initialize();
            Manufacturers = manufacturerRepository.Items.ToArray();
            //
            CollectionRepository collectionRepository = new CollectionRepository();

            collectionRepository.Initialize();
            Collections = collectionRepository.Items.ToArray();
        }