public ComercialProductGroupService(UnitOfWork unitOfWork) { Repo = unitOfWork.ProductGroups; Mapper = new ComercialProductGroupMapper(Repo); }
public UnitOfWork() { _context = new StockManagmentContext(); productRepository = new EfCoreProductRepository(_context); productGroupRepository = new EfCoreComercialProductGroupRepository(_context); }