WhiskWork.Core.WorkflowRepository.GetChildWorkItems C# (CSharp) Method

GetChildWorkItems() public method

public GetChildWorkItems ( WorkItemParent parent ) : IEnumerable
parent WorkItemParent
return IEnumerable
        public IEnumerable<WorkItem> GetChildWorkItems(WorkItemParent parent)
        {
            return _workItemRepsitory.GetChildWorkItems(parent);
        }

Usage Example

Ejemplo n.º 1
0
        private void TryUpdatingExpandLockOnParent(WorkItem item)
        {
            var parent = WorkflowRepository.GetWorkItem(item.Parent.Id);

            if (WorkflowRepository.GetChildWorkItems(item.Parent).All(WorkflowRepository.IsDone))
            {
                parent = parent.UpdateStatus(WorkItemStatus.Normal);
            }
            else
            {
                parent = parent.UpdateStatus(WorkItemStatus.ExpandLocked);
            }

            WorkflowRepository.UpdateWorkItem(parent);
        }
All Usage Examples Of WhiskWork.Core.WorkflowRepository::GetChildWorkItems