예제 #1
0
 public ProductsController(IProductService productService, IEsProductService eSProductService, IWsMapper mapper)
 {
     _productService   = productService;
     _eSProductService = eSProductService;
     _mapper           = mapper;
 }
 public EsProductService(IEsProductRepository esProductRepository, IWsMapper mapper)
 {
     _esProductRepository = esProductRepository ?? throw new ArgumentNullException(nameof(esProductRepository));
     _mapper = mapper;
 }
 public ProductService(IProductRepository productRepository, IWsMapper mapper)
     : base(productRepository, mapper)
 {
 }
예제 #4
0
 internal BaseService(IBaseRepository <TEntity> repository, IWsMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }