public ProductsService(IProductsContext productsContext, ICategoriesContext categoriesContext, IMapper mapper,
                        ISuppliersContext suppliersContext)
 {
     _productsContext = productsContext ?? throw new ArgumentNullException(nameof(productsContext));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #2
0
 public SuppliersService(ISuppliersContext suppliersContext, IMapper mapper)
 {
     _suppliersContext = suppliersContext;
     _mapper           = mapper;
 }