Ejemplo n.º 1
0
        public void UpdateAvaliableGroups()
        {
            var auxgroups = UserGroupModel.GetAll();

            Groups.Clear();

            foreach (var user in auxgroups)
            {
                if (!Groups.Contains(user))
                {
                    Groups.Add(user);
                }
            }
        }
        public void UpdateAvaliableGroups()
        {
            var groups = UserGroupModel.GetAll();

            AvaliableGroups.Clear();

            foreach (var group in groups)
            {
                if (!DefinedGroups.Where(x => x.GroupCode == group.GroupCode).Any())
                {
                    AvaliableGroups.Add(group);
                }
            }
        }