Ejemplo n.º 1
0
 /// <summary>
 /// Returns True if the userId is in any Sequence of this workflow.
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public bool IsUserInAnySequence(Guid userId)
 {
     return(WorkflowInstanceUsers.Any((x => x.UserId == userId)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns True if the userid is in the Current Sequence.
 /// </summary>
 public bool IsUserInCurrentSequence(Guid userId)
 {
     return(WorkflowInstanceUsers.Any(x => x.Sequence == Sequence && x.UserId == userId));
 }