コード例 #1
0
 public ProductsController(IProductAsyncRepository productRepository, IMapper mapper)
 {
     _productRepository = productRepository;
     _mapper            = mapper;
 }
コード例 #2
0
 public ProductAsyncController(IProductAsyncRepository productRepository, IMapper mapper)
 {
     _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }