public ProductsController(IProductAsyncRepository productRepository, IMapper mapper) { _productRepository = productRepository; _mapper = mapper; }
public ProductAsyncController(IProductAsyncRepository productRepository, IMapper mapper) { _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }