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")); }
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) })); }
public ActionResult Delete(Guid id) { var director = DirectorsDao.GetDirectorAndFilms(id); return(View(new DirectorView(director))); }