public ActionResult CreateNewEntry(ManualActionExecutionData.ManualActionExecution element, [FromQuery(Name = "eventSource")] string eventSource)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            ChainScheduleManager <ManualChainedActionExecution> .AddEntry(new ManualChainedActionExecution(element), eventSource);

            return(Ok());
        }
        public ActionResult CreateNewEntries(ManualActionExecutionData element)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            foreach (ManualActionExecutionData.ManualActionExecution manualActionExecution in element.ExecutionList)
            {
                ChainScheduleManager <ManualChainedActionExecution> .AddEntry(new ManualChainedActionExecution(manualActionExecution), element.Name);
            }

            return(Ok());
        }