Example #1
0
 public IEnumerable <Menu> GetRoleMenus(string roleCode)
 {
     try
     {
         return(_roleDao.GetRoleMenus(roleCode));
     }
     catch (Exception ex)
     {
         nlog.Error(ex, "查询角色拥有的菜单失败!", roleCode);
         return(new List <Menu>());
     }
 }