public ActionResult Chapter(int bookId) { var task = new ChapterParamModel { BookId = bookId, BookChapterList = _bookChapterService.GetBookChapters(bookId) }; return(View(task)); }
public ActionResult Chapter(int bookId) { var chapters = _bookChapterService.GetBookChapters(bookId); ViewBag.bookId = bookId; return(View(chapters)); }