Exemplo n.º 1
0
        //public ProductController()
        //{
        //    _products = new List<ProductVM>();
        //    _products.Add(new ProductVM() { ProductId = 1, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "2.jpg", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 2, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "header.png", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 3, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "1.png", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 4, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "1.png", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 5, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "1.png", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 6, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "1.png", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 7, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "1.png", Price = 79.95M });
        //    _products.Add(new ProductVM() { ProductId = 8, Name = "Save Big Preorder NOW - New Production Gold Pan BUNDLE", Image = "1.png", Price = 79.95M });

        //    //_products.Add(new Product() { ProductId = 2, Name = "Young Man Gold Pan", Image = "1.png", Price = 15.99M });
        //    //_products.Add(new Product() { ProductId = 305, Name = "Man Gold Pan", Image = "1.png",  Price = 20.99M });
        //}

        public ProductController(PinitgoDbContext context)
        {
            _context = context;
        }
Exemplo n.º 2
0
 public ImageService(PinitgoDbContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public OfferService(PinitgoDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public UploadController(PinitgoDbContext context)
 {
     _context      = context;
     _imageService = new ImageService(_context);
     _offerService = new OfferService(_context);
 }