public ActionResult Create() { ViewBag.HallId = new SelectList(hallManager.GetAllHalls(), "Id", "Id"); ViewBag.MovieId = new SelectList(movieManager.GetAllMovies(), "Id", "Name"); var exemploList = new SelectList(new[] { "21:00", "18:00", "15:00" }); ViewBag.ExemploList = exemploList; return(View()); }
// GET: Halls public ActionResult Index() { List <Hall> hall = hallManager.GetAllHalls(); return(View(hall)); }