public void Dispose() { if (_dbContext != null) { _dbContext = null; } if (_resourceDataAccess != null) { _resourceDataAccess.Dispose(); } }