Esempio n. 1
0
        public Guid Create(string entity, Dictionary <string, object> values)
        {
            var id            = CreateHandler.Execute(entity, values);
            var workflowInput = new WorkflowInputParameter();

            workflowInput.Values.Add("Id", id);
            workflowInput.Values.Add("Values", values);
            foreach (var item in CreateWorkflows
                     .Where(k => k.EntityLogicalName == entity)
                     .OrderBy(k => k.Order))
            {
                if (item.Action != null)
                {
                    item.Action.Invoke(this, workflowInput);
                }
            }
            return(id);
        }