public ActionResult Detail(int ID) { Book book = BookAction.FindBook(ID); if (Session["UserName"] != null) { int id_account = (int)Session["UserID"]; BookAction.Watched(id_account, ID); } else { BookAction.Watched(null, ID); } ViewBag.Book = book; ViewBag.ListBook = BookAction.ListBook(); return(View()); }