Exemplo n.º 1
0
        public bool Revoke(string id)
        {
            int index = -1;

            for (int i = 0; i < Permisos.Count; i++)
            {
                if (Permisos.ElementAt(i).Name.ToLower().Equals(id.ToLower()))
                {
                    index = i;
                }
            }
            if (index != -1)
            {
                Permisos.RemoveAt(index); return(true);
            }
            else
            {
                return(false);
            }
        }