Exemplo n.º 1
0
        public void Edit(WorkflowQueryCommand element)
        {
            try
            {
                if (element == null)
                {
                    throw new ArgumentNullException("element", "WorkflowQueryCommand can not be null");
                }

                WorkflowQueryCommand obj = this.workflowQueryCommands.Find(p => p.Guid == element.Guid);
                if (obj == null)
                {
                    throw new ArgumentNullException("element", "WorkflowQueryCommand doesn't find");
                }
                else
                {
                    this.workflowQueryCommands.Remove(obj);
                    this.workflowQueryCommands.Add(element);
                    // TODO BASE DE DATOS
                }
            }
            catch (Exception ex)
            {
                throw new ArgumentNullException("element", "SecGroup exception in remove operation: " + ex.Message);
            }
        }
Exemplo n.º 2
0
        public void Add(WorkflowQueryCommand element)
        {
            try
            {
                if (element == null)
                {
                    throw new ArgumentNullException("element", "WorkflowQueryCommand can not be null");
                }

                this.workflowQueryCommands.Add(element);
                // TODO BASE DE DATOS
            }
            catch (Exception ex)
            {
                throw new ArgumentNullException("element", "WorkflowQueryCommand exception in add operation: " + ex.Message);
            }
        }