Example #1
0
 /// <summary>
 /// 获取用户列表
 /// </summary>
 /// <param name="user"></param>
 /// <param name="pi"></param>
 /// <returns></returns>
 public List <User_S> GetAllUsers(User_S user)
 {
     try
     {
         SSODataFactory factory = new SSODataFactory();
         var            obj     = factory.GetAllUsers(user.UserLoginName, user.UserDisplayName);
         var            model   = obj.SSOAdapter();
         return(model.Adapter <UserEntity, User_S>(new List <User_S>()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 /// <summary>
 /// 获取所有用户数据
 /// </summary>
 /// <param name="LoginNameOrDisplayName"></param>
 /// <returns></returns>
 public List <UserInfo> GetAllUsers(string LoginName, string DisplayName)
 {
     try
     {
         SSODataFactory factory = new SSODataFactory();
         var            obj     = factory.GetAllUsers(LoginName, DisplayName);
         var            model   = obj.SSOAdapter();
         return(model.Adapter <UserEntity, UserInfo>(new List <UserInfo>()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }