public SequenceModel GetSequence(int taskId) { SequenceModel model = new SequenceModel(); Task parent = session.Load<Task>(taskId); model.Parent = new LiteItemModel(); model.Parent.FilledBy(parent); model.Children = new List<LiteItemModel>(); foreach (Task task in parent.Children) { LiteItemModel item = new LiteItemModel(); item.FilledBy(task); model.Children.Add(item); } return model; }
public void Sequence(SequenceModel model) { _taskService.UpdateTaskSequence(model.SelectedChildrenSequences); }