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); } }
public List <SystemRoleAuthority> GetAuthList(int roleId) { return(sras.GetAll(roleId)); }