// GET public ActionResult ReadBook(int id, int page) { Console.WriteLine("From read book: " + page); Console.WriteLine("from read book: " + id); string bookContent = BookDao.ReadBookFromPage(id, page); ViewBag.bookContent = bookContent; ViewBag.page = page; ViewBag.id = id; ViewBag.size = (int)Math.Ceiling((float)BookDao.GetTotalBookLength(id) / (int)GeneralInfo.NO_OF_CHARACTERS_PER_PAGE); return(View()); }