public void Execute(object parameter) { var commandToExecute = executeFunction.Invoke(parameter); commandHandler.Execute(commandToExecute); }