Esempio n. 1
0
        public static List <Role> GetRoleByID(string ID)
        {
            List <Role> List = new List <Role>();
            DataTable   dt   = AccountDAO.GetRoleByID(ID);

            foreach (DataRow dr in dt.Rows)
            {
                Role e = new Role();
                e.ID       = dr["RoleID"].ToString();
                e.RoleName = dr["RoleName"].ToString();
                e.Features = FeatureList.GetFeaturesByRoleID(e.ID);
                List.Add(e);
            }
            return(List);
        }