public void BaseDeriveParticipants(TaskDeriveParticipants method) { if (!method.Result.HasValue) { var participants = this.ExistDateClosed ? Array.Empty<User>() : new[] { this.CommunicationEvent.FromParty as User }; this.AssignParticipants(participants); method.Result = true; } }
public void BaseDeriveParticipants(TaskDeriveParticipants method) { if (!method.Result.HasValue) { var participants = this.ExistDateClosed ? (IEnumerable <Person>)Array.Empty <Person>() : new UserGroups(this.Strategy.Session).Administrators.Members.Select(v => (Person)v).ToArray(); this.AssignParticipants(participants); method.Result = true; } }