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