public DataTable Invoke(ICommand2 command) { if (command.CanExecute()) { return(command.Execute()); } else { return(new DataTable()); } }
public void StoreAndExecute(ICommand2 command2) { _commands2.Add(command2); command2.Execute(); }