Пример #1
0
        public List <Group> GetAllGroups()
        {
            List <Group> groups = new List <Group>();

            context.GetPublicGroups().ForEach(i => groups.Add(context.GetGroupByID(i)));

            return(groups);
        }
Пример #2
0
        public List <Group> GetPublicGroups()
        {
            GroupContext gc            = new GroupContext();
            List <Group> return_values = new List <Group>();

            foreach (int id in gc.GetPublicGroups())
            {
                return_values.Add(gc.GetGroupByID(id));
            }
            return(return_values);
        }