public List <Book.Model.T_Base_Book> GetList(int currentPage, int pageSize, String BookName = "", String Author = "") { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); List <Book.Model.T_Base_Book> lst = dal.GetList(currentPage, pageSize, BookName, Author); return(lst); }
public List <Book.Model.T_Base_Book> GetList(int PageNumber, int PageSize, string Query) { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); List <Book.Model.T_Base_Book> list = dal.GetList(PageNumber, PageSize, Query); return(list); }
public Book.Model.T_Base_Book_Page GetListPage(int CurrentPage, int PageSize) { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); List <Book.Model.T_Base_Book> list = dal.GetList(CurrentPage, PageSize); int count = dal.GetCount(); Book.Model.T_Base_Book_Page page = new Model.T_Base_Book_Page(); page.list = list; page.count = count; return(page); }
public Book.Model.T_Base_Book_Page GetListPage(int CurrentPage, int PageSize, String BookName = "", String Author = "") { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); List <Book.Model.T_Base_Book> list = dal.GetList(CurrentPage, PageSize, BookName, Author); int count = dal.GetCount(BookName, Author); Book.Model.T_Base_Book_Page page = new Model.T_Base_Book_Page(); page.list = list; page.count = count; return(page); }
public List <Book.Model.T_Base_Book> GetList(int CurrentPage, int PageSize) { Book.DAL.T_Base_Book dal = new DAL.T_Base_Book(); return(dal.GetList(CurrentPage, PageSize)); }