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