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