Esempio n. 1
0
        public ActionResult AddMovie()
        {
            var ops = new DVDLibraryOperations();
            var mpaa = ops.GetMPAARatings();
            var genres = ops.GetGenres();
            var directors = ops.GetDirectors().OrderBy(m => m.FirstName).ToList();
            var studios = ops.GetStudios().OrderBy(m => m.Name).ToList();
            var actors = ops.GetActors().OrderBy(m=>m.FirstName).ToList();
            var ratings = ops.GetRatings();

            var addMovieVM = new AddMovieViewModel(mpaa, genres, directors, studios, actors, ratings);

            return View(addMovieVM);
        }
        public List<DirectorModel> Get()
        {
            var ops = new DVDLibraryOperations();

            return ops.GetDirectors();
        }