public ActionResult Create() { return(View(new FilmInfoContainer() { AvailableActors = ActorsDao.FindAll(), AvailableDirectors = DirectorsDao.FindAll(), AvailableGenres = GenresDao.FindAll() })); }
public ActionResult Edit(Guid id) { var film = FilmsDao.GetFilmWithFullInfo(id); return(View(new FilmInfoContainer() { Film = new FilmView(film), AvailableActors = ActorsDao.GetActorsWithoutFilm(film.ID), AvailableDirectors = DirectorsDao.FindAll(), AvailableGenres = GenresDao.GetGenresWithoutFilm(film.ID) })); }
// GET: Directors public ActionResult Index() { return(View(DirectorsDao.FindAll().Select(d => new DirectorView(d)).OrderBy(d => d.FullName))); }