Exemplo n.º 1
0
        /// <summary>
        /// 取得全部的後台角色清單 No Lazy
        /// </summary>
        /// <returns>全部的後台角色清單</returns>
        public IList <LoginRoleVO> GetAllLoginRoleListNoLazy()
        {
            IList <LoginRoleVO> list = LoginRoleDao.GetAllLoginRoleList();

            if (list != null && list.Count > 0)
            {
                foreach (LoginRoleVO role in list)
                {
                    NHibernateUtil.Initialize(role.MenuFuncList);
                }
            }

            return(list);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 取得全部的後台角色清單
 /// </summary>
 /// <returns>全部的後台角色清單</returns>
 public IList <LoginRoleVO> GetAllLoginRoleList()
 {
     return(LoginRoleDao.GetAllLoginRoleList());
 }