예제 #1
0
        public void GetRoleAuthToRoleId()
        {
            SystemRoleAuthorityService sras = new SystemRoleAuthorityService();
            var id = 1;

            Assert.IsTrue(sras.GetAll(id) != null);
            foreach (var item in sras.GetAll(id))
            {
                Console.WriteLine(item.ModuleName);
            }
        }
예제 #2
0
 public List <SystemRoleAuthority> GetAuthList(int roleId)
 {
     return(sras.GetAll(roleId));
 }