public CategoryRepository(SimpleCommerceContext ctx)
 {
     _ctx = ctx;
 }
Exemplo n.º 2
0
 public ProductService()
 {
     _ctx = new SimpleCommerceContext();
     _categoryRepository = new CategoryRepository(_ctx);
     _productRepository  = new ProductRepository(_ctx);
 }
 public ProductRepository(SimpleCommerceContext ctx)
 {
     _ctx = ctx;
 }