Example #1
0
 public IEnumerable <Menu> GetList()
 {
     try
     {
         return(_menuDao.GetList());
     }
     catch (Exception ex)
     {
         nlog.Error(ex, "获取菜单失败!");
         return(null);
     }
 }
Example #2
0
        public List <MenuInfo> GetList(int tenantId)
        {
            ArgumentHelper.AssertIsTrue(tenantId > 0, "tenantId is 0");

            return(MenuDao.GetList(tenantId));
        }