EnableIndexes() private method

private EnableIndexes ( Table tableType ) : void
tableType Table
return void
        public IReadOnlyCollection <IEvent> ExecuteCommands(IReadOnlyCollection <ICommand> commands)
        {
            foreach (var enableCommand in commands.OfType <EnableIndexesCommand>())
            {
                _indexManager.EnableIndexes(enableCommand.Table);
            }

            return(Array.Empty <IEvent>());
        }
        public IReadOnlyCollection <IEvent> ExecuteCommands(IReadOnlyCollection <ICommand> commands)
        {
            var enableCommand = commands.OfType <EnableIndexesCommand>().SingleOrDefault();

            if (enableCommand != null)
            {
                _indexManager.EnableIndexes(enableCommand.Table);
            }

            return(Array.Empty <IEvent>());
        }