/// <summary> /// 取得後台角色 By 角色Id No Lazy /// </summary> /// <param name="roleId">使用者Id</param> /// <returns>後台使用者</returns> public LoginRoleVO GetLoginRoleByIdNoLazy(int roleId) { LoginRoleVO role = LoginRoleDao.GetLoginRoleById(roleId); if (role != null) { NHibernateUtil.Initialize(role.LoginUserList); NHibernateUtil.Initialize(role.MenuFuncList); } return(role); }
/// <summary> /// 取得後台角色 By 角色Id /// </summary> /// <param name="roleId">使用者Id</param> /// <returns>後台使用者</returns> public LoginRoleVO GetLoginRoleById(int roleId) { return(LoginRoleDao.GetLoginRoleById(roleId)); }