Example #1
0
 /// <summary>
 /// Ctor for Task
 /// </summary>
 /// <param name="task">Task </param>
 public Task(T_ScheduleTask task)
 {
     this.Type        = task.Type;
     this.Enabled     = task.Enabled;
     this.StopOnError = task.StopOnError;
     this.Name        = task.Name;
 }
        /// <summary>
        /// Inserts a task
        /// </summary>
        /// <param name="task">Task</param>
        public virtual void InsertTask(T_ScheduleTask task)
        {
            if (task == null)
            {
                throw new ArgumentNullException("task");
            }

            _taskRepository.Insert(task);
        }