public AtributosController()
        {
            var ctxFactory = new EFDataContextFactory();

            _attributeRepository = new AttributeRepository(ctxFactory);
            _categoryRepository  = new CategoryRepository(ctxFactory);
        }
Beispiel #2
0
        public HomeController()
        {
            var EFfactory = new EFDataContextFactory();

            _categoryRepository = new CategoryRepository(EFfactory);
            _userRepository     = new UserRepository(EFfactory);
        }
Beispiel #3
0
        public ProductosController()
        {
            logger = LogManager.GetCurrentClassLogger();
            var ctxFactory = new EFDataContextFactory();

            _productRepository = new ProductRepository(ctxFactory);
            _placeRepository   = new PlaceRepository(ctxFactory);
        }
        public AccountController()
        {
            var ctxFactory = new EFDataContextFactory();

            _userRepository     = new UserRepository(ctxFactory);
            _categoryRepository = new CategoryRepository(ctxFactory);
            _placeRepository    = new PlaceRepository(ctxFactory);
        }
Beispiel #5
0
        public AdminController()
        {
            var ctxFactory = new EFDataContextFactory();

            _productRepository  = new ProductRepository(ctxFactory);
            _categoryRepository = new CategoryRepository(ctxFactory);
            _companyRepository  = new CompanyRepository(ctxFactory);
        }
Beispiel #6
0
        public ProductosController()
        {
            var ctxFactory = new EFDataContextFactory();

            _productRepository   = new ProductRepository(ctxFactory);
            _categoryRepository  = new CategoryRepository(ctxFactory);
            _attributeRepository = new AttributeRepository(ctxFactory);
            _companyRepository   = new CompanyRepository(ctxFactory);
            _placeRepository     = new PlaceRepository(ctxFactory);
        }
        public CategoriasController()
        {
            var ctxFactory = new EFDataContextFactory();

            _categoryRepository = new CategoryRepository(ctxFactory);
        }
        public EmpresasController()
        {
            var ctxFactory = new EFDataContextFactory();

            _companyRepository = new CompanyRepository(ctxFactory);
        }