Esempio n. 1
0
 /// <summary>获得角色列表 
 /// </summary>
 /// <param name="pageIndex"></param>
 /// <param name="pageSize"></param>
 /// <returns></returns>
 public List<RoleEntity> GetRoles(int pageIndex, int pageSize, string RoleName, out int count)
 {
     int skip = (pageIndex - 1) * pageSize;
     RoleDal roleDal = new RoleDal();
     List<RoleEntity> roleEntities = roleDal.GetRoles(skip, pageSize, RoleName, out count);
     return roleEntities;
 }
Esempio n. 2
0
 /// <summary>获得角色列表 
 /// </summary>
 /// <param name="roleIdList"></param>
 /// <returns></returns>
 public List<RoleEntity> GetRoles(List<int> roleIdList)
 {
     if (roleIdList == null || !roleIdList.Any())
         return new List<RoleEntity>();
     roleIdList = roleIdList.Distinct().ToList();
     RoleDal roleDal = new RoleDal();
     return roleDal.GetRoles(roleIdList);
 }
Esempio n. 3
0
 public List<RoleEntity> GetRoles()
 {
     RoleDal roleDal = new RoleDal();
     List<RoleEntity> roleEntities = roleDal.GetRoles();
     return roleEntities;
 }