Example #1
0
 public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, ShopNepalDbContext context, IHostingEnvironment appEnvironment)
 {
     _productRepository  = productRepository;
     _context            = context;
     _appEnvironment     = appEnvironment;
     _categoryRepository = categoryRepository;
 }
Example #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)
 {
 }
Example #6
0
 public CategoryRepository(ShopNepalDbContext context) : base(context)
 {
 }