protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { _customerRepo.Dispose(); } }
protected override void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing) { _productRepo.Dispose(); _customerRepo.Dispose(); } _isDisposed = true; // Call base class implementation. base.Dispose(disposing); }
public override void Dispose() { _productRepo.Dispose(); _customerRepo.Dispose(); base.Dispose(); }