Example #1
0
        public static List <UserType> GetActiveUserTypes(int securityLevel)
        {
            List <UserType> ut;

            using (CustomClearviewEntities ctx = new CustomClearviewEntities())
            {
                UserTypeRepository repo = new UserTypeRepository(ctx);
                ut = repo.GetActiveItems().Where(x => x.SecurityLevel <= securityLevel).ToList();
            }
            return(ut);
        }