public CategoryRepository(SimpleCommerceContext ctx) { _ctx = ctx; }
public ProductService() { _ctx = new SimpleCommerceContext(); _categoryRepository = new CategoryRepository(_ctx); _productRepository = new ProductRepository(_ctx); }
public ProductRepository(SimpleCommerceContext ctx) { _ctx = ctx; }