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