/// <summary>
        /// Executes the get workflow run action command
        /// </summary>
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();

            if (string.IsNullOrEmpty(this.ActionName))
            {
                var enumerator = LogicAppClient.GetWorkflowRunActions(this.ResourceGroupName, this.Name, this.RunName).GetEnumerator();
                this.WriteObject(enumerator.ToIEnumerable <WorkflowRunAction>(), true);
            }
            else
            {
                this.WriteObject(
                    LogicAppClient.GetWorkflowRunAction(this.ResourceGroupName, this.Name, this.RunName, this.ActionName),
                    true);
            }
        }
 /// <summary>
 /// Executes the get workflow run action command
 /// </summary>
 public override void ExecuteCmdlet()
 {
     base.ExecuteCmdlet();
     if (string.IsNullOrEmpty(this.ActionName))
     {
         var page = new Page <WorkflowRunAction>();
         int i    = 0;
         do
         {
             page = this.LogicAppClient.GetWorkflowRunActions(this.ResourceGroupName, this.Name, this.RunName, page.NextPageLink);
             this.WriteObject(page.GetEnumerator().ToIEnumerable <WorkflowRunAction>(), true);
             i++;
         }while (this.FollowNextPageLink && !string.IsNullOrWhiteSpace(page.NextPageLink) && i <= this.MaximumFollowNextPageLink);
     }
     else
     {
         this.WriteObject(LogicAppClient.GetWorkflowRunAction(
                              this.ResourceGroupName, this.Name, this.RunName, this.ActionName), true);
     }
 }