コード例 #1
0
        public ActionResult Details(int id)
        {
            var  database = new FakeFilmDatabase();
            Film film     = database.GetById(id);

            return(View("Details", film));
        }
コード例 #2
0
        public ActionResult Edit(int id)
        {
            //int filmId = int.Parse(RouteData.Values["id"].ToString());

            var database = new FakeFilmDatabase();
            var film     = database.GetById(id);

            return(View(film));
        }