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