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

            _attributeRepository = new AttributeRepository(ctxFactory);
            _categoryRepository  = new CategoryRepository(ctxFactory);
        }
Esempio n. 2
0
        public HomeController()
        {
            var EFfactory = new EFDataContextFactory();

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

            _productRepository = new ProductRepository(ctxFactory);
            _placeRepository   = new PlaceRepository(ctxFactory);
        }
Esempio n. 4
0
        public AccountController()
        {
            var ctxFactory = new EFDataContextFactory();

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

            _productRepository  = new ProductRepository(ctxFactory);
            _categoryRepository = new CategoryRepository(ctxFactory);
            _companyRepository  = new CompanyRepository(ctxFactory);
        }
Esempio n. 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);
        }
Esempio n. 8
0
        public EmpresasController()
        {
            var ctxFactory = new EFDataContextFactory();

            _companyRepository = new CompanyRepository(ctxFactory);
        }