Exemplo n.º 1
0
        private static String[] addUserGroups(String[] tk)
        {
            List <Group> gl;

            if (tk.Length < 3)
            {
                return(str2arr("Missing arguments. Usage: addUserGroups <userID> <groupName1> [groupName2] .. [groupNameN]"));
            }
            gl = sm.addGroups(tk.Skip(2).ToList(), int.Parse(tk[1]));
            return(gl == null?str2arr("Error!") : gl.Select(g => g.groupID + "\t" + g.nameGroup).ToArray());
        }