public DataTable GetAll()
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return(userDao.FindAll());
     }
 }
 public DataSet GetUserList(int pageIndex, int pageSize, string filter)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return(userDao.FindAll((pageIndex - 1) * pageSize, pageSize, filter));
     }
 }