Esempio n. 1
0
        public static string[] GetMyStores(string username)
        {
            aUser temp = getUser(username);

            if (temp == null)
            {
                return(null);
            }
            var list = temp.GetAllPermissions();

            if (list != null)
            {
                string[] persmissions = new string[list.Count];
                int      i            = 0;
                foreach (string type in list.Keys)
                {
                    persmissions[i] = type;
                    i++;
                }
                return(persmissions);
            }
            return(null);
        }