Example #1
0
        public ProductRepository(ICurrentContext currentContext)
        {
            _currentContext = currentContext ?? throw new ArgumentNullException();

            if (_currentContext.Context == null)
            {
                _currentContext.Create();
            }
        }