public ProductService(UnitOfWork unitOfWork) { Repo = unitOfWork.Products; Mapper = new ProductMapper(Repo); }
public UnitOfWork() { _context = new StockManagmentContext(); productRepository = new EfCoreProductRepository(_context); productGroupRepository = new EfCoreComercialProductGroupRepository(_context); }