示例#1
0
        public List <ServerScriptModelGroupMemberModel> GetMembers()
        {
            var groupMembers = new List <ServerScriptModelGroupMemberModel>();

            GroupUtilities.GroupMembers(
                context: Context,
                groupId: GroupId)
            .ForEach(dataRow =>
                     groupMembers.Add(new ServerScriptModelGroupMemberModel(
                                          context: Context,
                                          groupId: dataRow.Int("GroupId"),
                                          deptId: dataRow.Int("DeptId"),
                                          userId: dataRow.Int("UserId"),
                                          admin: dataRow.Bool("Admin"))));
            return(groupMembers);
        }