Exemplo n.º 1
0
 public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, ShopNepalDbContext context, IHostingEnvironment appEnvironment)
 {
     _productRepository  = productRepository;
     _context            = context;
     _appEnvironment     = appEnvironment;
     _categoryRepository = categoryRepository;
 }
Exemplo n.º 2
0
 public Repository(ShopNepalDbContext context)
 {
     _context = context;
 }
 public CategoryController(ICategoryRepository categoryRepository, ShopNepalDbContext context)
 {
     _context            = context;
     _categoryRepository = categoryRepository;
 }
 private ShoppingCart(ShopNepalDbContext contex)
 {
     _context = contex;
 }
 public ProductRepository(ShopNepalDbContext context) : base(context)
 {
 }
Exemplo n.º 6
0
 public CategoryRepository(ShopNepalDbContext context) : base(context)
 {
 }