/// <summary> /// 详情页面 /// </summary> /// <returns></returns> public ActionResult MovieDetail(int id = 0) { //去数据库数据,把id传进去 MovieDB db = new MovieDB(); MovieDetailModel m = db.GetDetail(id); ViewBag.movieModel = m; return(View()); }