Exemplo n.º 1
0
 public ProductController()
 {
     productContext    = new Repositories.ProductContext(db);
     productRepository = new Repositories.ProductRepository(db);
     userContext       = new Repositories.UserContext(db);
     userRepository    = new Repositories.UserRepository(db);
 }
 public ProductImportGoogleMerchantXML()
 {
     _db = new DAL.ServiceContext();
     productRepository = new Repositories.ProductRepository(_db);
     userRepository    = new Repositories.UserRepository(_db);
     userContext       = new Repositories.UserContext(_db);
 }
Exemplo n.º 3
0
 public RozetkaPageDriver(ApplicationContext Context)
 {
     this.proxyList          = new ProxyBuilder().GenerateProxy().Build();
     this._context           = Context;
     this._productRepository = new Repositories.ProductRepository(_context);
     GenerateHrefs();
 }
Exemplo n.º 4
0
 public OrderProcessDefault()
 {
     db = new DAL.ServiceContext();
     orderRepository   = new Repositories.OrderRepository(db);
     productRepository = new Repositories.ProductRepository(db);
     serviceRepository = new Repositories.ServiceSettingRepositorie(db);
     userRepository    = new Repositories.UserRepository(db);
 }
Exemplo n.º 5
0
 public ServiceHub()
 {
     orderRepository           = new Repositories.OrderRepository(db);
     productRepository         = new Repositories.ProductRepository(db);
     userRepository            = new Repositories.UserRepository(db);
     gameSettingsRepository    = new Repositories.GameSettingsRepository(db);
     serviceSettingsRepository = new Repositories.ServiceSettingRepositorie(db);
     localizationRepository    = new Repositories.LocalizationRepository(db);
 }
Exemplo n.º 6
0
        public ActionResult Open(Product product)
        {
            if (product != null)
            {
                var repo = new Repositories.ProductRepository();
                repo.Update(product);
            }

            return(RedirectToAction("List", "Product"));
        }
Exemplo n.º 7
0
        public ActionResult Open(int id)
        {
            var repo = new Repositories.ProductRepository();

            if (Request.IsAjaxRequest())
            {
                return(PartialView(repo.FirstOrDefault(x => x.Id == id)));
            }
            return(View(repo.FirstOrDefault(x => x.Id == id)));
        }
Exemplo n.º 8
0
 public RestroductController()
 {
     productRepository = new Repositories.ProductRepository(new DAL.ServiceContext());
 }