public ProductRepository(ICurrentContext currentContext) { _currentContext = currentContext ?? throw new ArgumentNullException(); if (_currentContext.Context == null) { _currentContext.Create(); } }