public ActionResult Create()
 {
     return(View(new ActorInfoContainer()
     {
         AvailableFilms = FilmsDao.FindAll(),
         Countries = CountriesDao.FindAll().OrderBy(c => c.Name)
     }));
 }
Beispiel #2
0
 //GET: Films/Top100
 public ActionResult Top100([ModelBinder(typeof(UserModelBinder))] User user)
 {
     return(View(FilmsDao.FindAll()
                 .OrderByDescending(f => f.IMDbRating)
                 .Take(100)
                 .Select(f => new FilmView(f)
     {
         IsFav = user.HasFavourite(f.ID)
     })
                 .ToList()));
 }