Ejemplo n.º 1
0
 public static ProductRepository Init()
 {
     return(_productRepository ?? (_productRepository = new ProductRepository()));
 }
 public static ProductRepository Init()
 {
     return _productRepository ?? (_productRepository = new ProductRepository());
 }
Ejemplo n.º 3
0
 public ProductController(ProductRepository productRepository, CategoryRepository categoryRepository, ImageRepository imageRepository)
 {
     _productRepository = productRepository;
     _categoryRepository = categoryRepository;
     _imageRepository = imageRepository;
 }