public CategoriesController(IArticleRepositoryAsync articleRepository, IPriceListRepositoryAsync articlePriceRepository, IShopSignRepositoryAsync shopSignRepository, IUserRepositoryAsync userRepository) { _articleRepository = (ArticleCacheRepositoryAsync)articleRepository ?? throw new ArgumentNullException(nameof(articleRepository)); _articlePriceRepository = articlePriceRepository ?? throw new ArgumentNullException(nameof(articlePriceRepository)); _shopSignRepository = shopSignRepository ?? throw new ArgumentNullException(nameof(shopSignRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
//private readonly IStockGroupRepositoryAsync _stockGroupRepository; public CatalogService(IArticleRepositoryAsync articleRepository, IPriceListRepositoryAsync articlePriceRepository, IShopSignRepositoryAsync shopSignRepository, IUserRepositoryAsync userRepository) { _articleRepository = (ArticleCacheRepositoryAsync)articleRepository ?? throw new ArgumentNullException(nameof(articleRepository)); _articlePriceRepository = articlePriceRepository ?? throw new ArgumentNullException(nameof(articlePriceRepository)); _shopSignRepository = shopSignRepository ?? throw new ArgumentNullException(nameof(shopSignRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); //_stockGroupRepository = stockGroupRepository ?? throw new ArgumentNullException(nameof(stockGroupRepository)); }