コード例 #1
0
        public ActionResult DoEdit(Guid id, HttpPostedFileBase file, DirectorInput newView)
        {
            var data = DirectorsDao.GetDirectorAndFilms(id);

            newView.CopyToData(data, file, CountriesDao, FilmsDao);
            DirectorsDao.Update(data);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public ActionResult Edit(Guid id)
        {
            var director = DirectorsDao.GetDirectorAndFilms(id);

            return(View(new DirectorInfoContainer()
            {
                Director = new DirectorView(director),
                AvailableFilms = FilmsDao.GetFilmsWithoutDirector(director.ID),
                Countries = CountriesDao.FindAll().OrderBy(c => c.Name)
            }));
        }
コード例 #3
0
        public ActionResult Delete(Guid id)
        {
            var director = DirectorsDao.GetDirectorAndFilms(id);

            return(View(new DirectorView(director)));
        }