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