Exemplo n.º 1
0
 public ActionResult Create()
 {
     return(View(new FilmInfoContainer()
     {
         AvailableActors = ActorsDao.FindAll(),
         AvailableDirectors = DirectorsDao.FindAll(),
         AvailableGenres = GenresDao.FindAll()
     }));
 }
Exemplo n.º 2
0
 // GET: Actors
 public ActionResult Index()
 {
     return(View(ActorsDao.FindAll().Select(a => new ActorView(a)).OrderBy(a => a.FullName)));
 }