/// <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))); }
/// <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)); }