public DataUnitOfWork( IGenericRepository <Client> clientRepository, IGenericRepository <Product> productRepository, IGenericRepository <Manager> managerRepository, ISoldProductRepository soldProductRepository) { ClientRepository = clientRepository ?? throw new ArgumentNullException(nameof(clientRepository)); ProductRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); ManagerRepository = managerRepository ?? throw new ArgumentNullException(nameof(managerRepository)); SoldProductRepository = soldProductRepository ?? throw new ArgumentNullException(nameof(soldProductRepository)); }
public SoldProductService(ISoldProductRepository soldProductsRepository, IUnitOfWork unitOfWork) { this.soldProductsRepository = soldProductsRepository; this.unitOfWork = unitOfWork; }