Beispiel #1
0
        public IEnumerable <CommandParametersModel> GetRequirementUsers(CommandParametersModel parameters)
        {
            List <CommandParametersModel> users     = new List <CommandParametersModel>();
            ThresholdRequirementModel     threshold = this.Threshold;

            if (threshold != null && threshold.IsEnabled)
            {
                foreach (CommandParametersModel u in threshold.GetApplicableUsers())
                {
                    users.Add(u);
                }
            }
            else
            {
                users.Add(parameters);
            }
            return(users);
        }
        public IEnumerable <UserViewModel> GetRequirementUsers(UserViewModel user)
        {
            List <UserViewModel>      users     = new List <UserViewModel>();
            ThresholdRequirementModel threshold = this.Threshold;

            if (threshold != null && threshold.IsEnabled)
            {
                foreach (UserViewModel u in threshold.GetApplicableUsers())
                {
                    users.Add(u);
                }
            }
            else
            {
                users.Add(user);
            }
            return(users);
        }