Esempio n. 1
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            List <Movie> lstMovie = new List <Movie>();

            lstMovie              = objMovie.GetAllMovies().ToList();
            ViewBag.ActorsList    = lstMovie[0].ActorList.ToList();;
            ViewBag.ProducersList = lstMovie[0].ProducerList.ToList();;
            return(View(lstMovie));
        }
Esempio n. 2
0
 // GET: Movies
 public IActionResult Index()
 {
     return(View(dal.GetAllMovies()));
 }