public async Task <IActionResult> Index(int pageno, String keyword = null) { Pagination pagination = new Pagination(); ViewBag.keyword = keyword; pagination.PageNo = pageno; if (!String.IsNullOrWhiteSpace(keyword)) { var receiveData = await bookApi.SearchBook <Tuple <IEnumerable <BookStoreFrontEnd.Models.Book>, BookStoreFrontEnd.Models.Pagination> >(keyword, pagination); return(View(receiveData)); } else { var receiveData = await bookApi.RetrieveBookList <Tuple <IEnumerable <BookStoreFrontEnd.Models.Book>, BookStoreFrontEnd.Models.Pagination> >(pagination); return(View(receiveData)); } }