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