protected BaseController(
     ICategoryRepository catRepo,
     IManufacturersRepository manufacturersRepository)
 {
     _catRepo = catRepo;
     _manufacturersRepository = manufacturersRepository;
 }
 public ManageProductsController(IProductsRepository productsRepository, ICategoryRepository categoryRepository,
     IManufacturersRepository manufacturerRepository, IProductImagesRepository productImagesRepository)
 {
     _productsRepository = productsRepository;
     _categoryRepository = categoryRepository;
     _manufacturerRepository = manufacturerRepository;
     _productImagesRepository = productImagesRepository;
 }
 protected BaseController(
     ICategoryRepository catRepo,
     IManufacturersRepository manufacturersRepository)
 {
     CatRepo = catRepo;
     ManufacturersRepository = manufacturersRepository;
     AutoLoginRememberedUser();
 }
 protected BaseController(
     ICategoryRepository categoryRepository,
     IManufacturersRepository manufacturersRepository,
     IProductsRepository productsRepository)
 {
     _catRepo = categoryRepository;
     _manufacturersRepository = manufacturersRepository;
     _productsRepository = productsRepository;
 }
 public HomeController(
     ICategoryRepository catRepo,
     IProductsRepository productRepo,
     IManufacturersRepository manufacturerRepo)
     : base(catRepo,manufacturerRepo,productRepo)
 {
     homeLogic = new Home(_productsRepository);
     ViewBag.Categories = GetCategories();
     ViewBag.Manufacturers = GetManufacturers();
     ViewBag.CategorySelectList = GetCategoryList();
 }
 protected BaseController(
     IOrdersRepository ordersRepository, 
     IOrderDetailsRepository orderDetailsRepository,
     IUserRepository usersRepository,
     ICategoryRepository catRepo,
     IManufacturersRepository manufacturersRepository)
 {
     _userRepository = usersRepository;
     _ordersRepository = ordersRepository;
     _orderDetailsRespo = orderDetailsRepository;
     _catRepo = catRepo;
     _manufacturersRepository = manufacturersRepository;
 }
        public OfferController(
            ICategoryRepository catRepo, 
            IProductsRepository productRepo, 
            IManufacturersRepository manufacturersRepository)
            : base(catRepo,manufacturersRepository,productRepo)
        {
            offerLogic = new Offer(_productsRepository);
            ViewBag.Categories = GetCategories();
            ViewBag.Manufacturers = GetManufacturers();
            ViewBag.CategorySelectList = GetCategoryList();

            ViewData["SearchOptions"] = new SelectList(Common.GetSortOptions(), "Id", "Name", 1);
        }
 public ProductsController(
     INhibernateConnection connection, IProductsRepository repo,
     ICategoryRepository categoryRepo,
     IManufacturersRepository manufacturersRepo,
     IProductImagesRepository productImageRepo
     )
 {
     _productRepo = repo;
     ISessionFactory sessionFactory = connection.CreateSessionFactory();
     _session = sessionFactory.OpenSession();
     _categoryRepo = categoryRepo;
     _manufacturersRepo = manufacturersRepo;
     _productImagesRepository = productImageRepo;
 }
 protected BaseController(
     IOrdersRepository ordersRepository, 
     IOrderDetailsRepository orderDetailsRepository,
     IUserRepository usersRepository,
     ICategoryRepository catRepo,
     IManufacturersRepository manufacturersRepository)
 {
     UserRepository = usersRepository;
     OrdersRepository = ordersRepository;
     OrderDetailsRespo = orderDetailsRepository;
     CatRepo = catRepo;
     ManufacturersRepository = manufacturersRepository;
     AutoLoginRememberedUser();
 }
 public ProductController(
     IProductImagesRepository productImageRepo,
     IProductsRepository productsRepo,
     ICategoryRepository catRepo,
     IManufacturersRepository manufacturersRepository)
     : base(catRepo,manufacturersRepository,productsRepo)
 {
     _productLogic = new Product(productsRepo);
     _productImagesRepository = productImageRepo;
     ViewBag.Categories = GetCategories();
     ViewBag.Manufacturers = GetManufacturers();
     ViewBag.CategorySelectList = GetCategoryList();
     ViewData["SearchOptions"] = new SelectList(Common.GetSortOptions(), "Id", "Name", 1);
 }
 public MyAccountController(
     IUserRepository userRepo,
     IOrdersRepository orderRepo,
     IOrderDetailsRepository orderDetailsRespo,
     ICategoryRepository catRepo,
     IManufacturersRepository manufacturersRepository)
     : base(orderRepo,orderDetailsRespo,userRepo,catRepo,manufacturersRepository)
 {
     myAccountLogic = new MyAccount(userRepo);
     _cookie = new HttpCookie("userId");
     _isAdminCookie = new HttpCookie("isAdmin");
     ViewBag.Categories = GetCategories();
     ViewBag.Manufacturers = GetManufacturers();
     ViewBag.CategorySelectList = GetCategoryList();
     ViewBag.IsAdmin = false;
 }
 public SetupController(ICategoryRepository catRepo, IOrderDetailsRepository orderDetailsRepository,
     IOrdersRepository orderRepo, IManufacturersRepository manuRepo,
     IProductImagesRepository productImgRepo, IUserRepository userRepo, INhibernateConnection conn,
     IProductsRepository productRepo,
     IDeliveryTypesRepository deliveryRepo)
 {
     _manuRepo = manuRepo;
     _productRepo = productRepo;
     _catRepo = catRepo;
     _productImagesRepository = productImgRepo;
     _userRepo = userRepo;
     _ordersRepository = orderRepo;
     _orderDetailsRepository = orderDetailsRepository;
     _deliveryRepo = deliveryRepo;
     _session = conn.CreateSessionFactory().OpenSession();
 }
 public ManageManufacturersController(IManufacturersRepository manufacturersRepository,
     IProductsRepository productsRepository)
 {
     _manufacturersRepository = manufacturersRepository;
     _productsRepository = productsRepository;
 }
Exemple #14
0
 public ClientController()
 {
     ManufacturersRepo = RepositoryHelper.GetManufacturersRepository();
 }
 public FiltersService(IManufacturersRepository manufacturersRepository, IOsesRepository osesRepository, IProductsRepository productsRepository)
 {
     _manufacturersRepository = manufacturersRepository;
     _osesRepository          = osesRepository;
     _productsRepository      = productsRepository;
 }