Пример #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));
        }