Пример #1
0
 public CustomerController()
 {
     repositoryUser     = new CustomerDAO();
     repositoryCountry  = new CountryDAO();
     repositoryUserRole = new CustomerRoleDAO();
     vm = new CustomerVM();
 }
Пример #2
0
 public HomeController()
 {
     _repositoryBanner  = new BannerDAO();
     _repositoryVideos  = new VideosDAO();
     _repositoryPartner = new PartnershipDAO();
     _repositryNav      = new NavigationDao();
     _vm = new HomeVM();
 }
Пример #3
0
 public CustomerController()
 {
     _repositoryUser       = new CustomerDAO();
     _repositoryCountry    = new CountryDAO();
     _repositoryUserRole   = new CustomerRoleDAO();
     _repositryMappingRole = new CustomerMappingRoleDao();
     _vm = new CustomerVM();
 }
Пример #4
0
 public OrderController()
 {
     _repositryOrder = new OrderDao();
     _repositryShipping = new ShippingMethodDao();
     _repositryPaymentMethod = new PaymentMethodDao();
     _vm = new OrderVm();
     _reposProduct = new ProductDAO();
     _repositoryUser = new CustomerDAO();
     _repositoryCountry = new CountryDAO();
     _repositryOrderProductVariant = new OrderProductVariantDao();
 }
Пример #5
0
        public AccessoriesController()
        {
            _vm                = new ProductsVM();
            _reposProduct      = new ProductDAO();
            _repositoryPartner = new PartnershipDAO();
            IRepositryBase <Fly_Navigation> repositryNav = new NavigationDao();

            List <Fly_Navigation> listNav = repositryNav.getAllItems().ToList();

            ViewData[StaticVariable.Navigation] = listNav;
        }
Пример #6
0
        public TechnicalController()
        {
            _reposVideo = new VideosDAO();
            IRepositryBase <Fly_Navigation> repositryNav = new NavigationDao();

            _repositoryPartner = new PartnershipDAO();
            _vm = new TechnicalVm();

            List <Fly_Navigation> listNav = repositryNav.getAllItems().ToList();

            ViewData[StaticVariable.Navigation] = listNav;
        }
Пример #7
0
        public ProductsController()
        {
            //view-model
            vm = new ProductVM();

            //repository
            repository          = new ProductDAO();
            _repoCategories     = new CategoryDAO();
            _repoManufacturer   = new ManufacturerDAO();
            _repoDiscount       = new DiscountDAO();
            _repoRelatedProduct = new RelatedProductDAO();
        }
Пример #8
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();
        }
Пример #9
0
        public ProductController()
        {
            _reposProduct      = new ProductDAO();
            _repositoryPartner = new PartnershipDAO();
            _reposVideo        = new VideosDAO();
            _repositoryUser    = new CustomerDAO();
            _repositryNav      = new NavigationDao();

            _vm = new ProductsVM();

            List <Fly_Navigation> listNav = _repositryNav.getAllItems().ToList();

            ViewData[StaticVariable.Navigation] = listNav;
        }
Пример #10
0
        public PaymentController()
        {
            _repositryOrder         = new OrderDao();
            _repositryShipping      = new ShippingMethodDao();
            _repositryPaymentMethod = new PaymentMethodDao();
            _vm                = new ShopCartVm();
            _reposProduct      = new ProductDAO();
            _repositoryUser    = new CustomerDAO();
            _repositoryCountry = new CountryDAO();


            IRepositryBase <Fly_Navigation> repositryNav = new NavigationDao();

            List <Fly_Navigation> listNav = repositryNav.getAllItems().ToList();

            ViewData[StaticVariable.Navigation] = listNav;
        }
Пример #11
0
 public CategoriesController()
 {
     repository  = new CategoryDAO();
     repositoryD = new DiscountDAO();
 }
Пример #12
0
 public NavigationController()
 {
     _repositryBase = new NavigationDao();
     _vm            = new NavigationVm();
 }
Пример #13
0
 public BlogPostController()
 {
     _repos     = new BlogPostDAO();
     _reposType = new BlogPostTypeDAO();
     _vm        = new BlogPostVm();
 }
Пример #14
0
 public PartnershipController()
 {
     repository = new PartnershipDAO();
     vm         = new PartnershipVM();
 }
Пример #15
0
 public TeamController()
 {
     _vm         = new TeamVm();
     _repository = new TeamDao();
 }
Пример #16
0
 public ManufacturerController()
 {
     repository          = new ManufacturerDAO();
     repositoryLocalized = new ManufacturerLocalizedDAO();
 }
Пример #17
0
 public SpecController()
 {
     vm               = new ProductGalleryVM();
     _repository      = new SectionContentDAO();
     _repoPositionPos = new PositionGalleryDAO();
 }
Пример #18
0
 public BannerTypeController()
 {
     repository = new BannerTypeDAO();
 }
Пример #19
0
 public DiscountController()
 {
     this._repositryBase = new DiscountDAO();
     _vm = new DiscountVm();
 }
Пример #20
0
 // contructor
 public BannerController()
 {
     _repository = new BannerDAO();
     _repoType = new BannerTypeDAO();
     _bannerModel = new BannerModel();
 }
Пример #21
0
 public UserController()
 {
     _country        = new CountryDAO();
     _repositoryUser = new CustomerDAO();
     vm = new UserVM();
 }