public DataRepository(ConfiguratorSampleContext context) { _context = context; }
public ProductController(ConfiguratorSampleContext context, IMapper mapper, IDataRepository <Product> repo) { _context = context; _mapper = mapper; _repo = repo; }