示例#1
0
 public ProductGalleryController()
 {
     vm                  = new ProductGalleryVM();
     _repoPosition       = new PositionGalleryDAO();
     _repoSectionGallery = new SectionGalleryDAO();
     _repoSectionContent = new SectionContentDAO();
 }
示例#2
0
        public AccessoryController()
        {
            //view-model
            _vm = new ProductVM();

            //repository
            _repository         = new ProductDAO();
            _repoCategories     = new CategoryDAO();
            _repoManufacturer   = new ManufacturerDAO();
            _repoDiscount       = new DiscountDAO();
            _repoRelatedProduct = new RelatedProductDAO();
            _repoSectionGallery = new SectionGalleryDAO();
        }