/// <summary> /// 根据图书类型和当前页数返回查询的图书 /// </summary> /// <param name="typeID"></param> /// <param name="pageIndex"></param> /// <returns></returns> public List <BookInfoModel> getBookInfoByType(string typeID, int pageIndex) { BookInfoDAL dal = new BookInfoDAL(); return(dal.getBookInfoByPage(typeID, (pageIndex - 1) * 20 + 1, pageIndex * 20)); }