public ActionResult RemoveMovie() { MovieDal movies = new MovieDal(); movies.GetAllMovies(); return(View(movies)); }
public ActionResult Movies(string OrderBy = "movie_name") { if (OrderBy == "0") { OrderBy = "movie_name"; } Order.RemoveUnpaidOrders(); MovieDal m = new MovieDal(); m.GetAllMovies(OrderBy); return(View(m)); }
public ActionResult AddShow(string msg) { if (msg != null) { ViewData["msg"] = msg; } MovieDal movies = new MovieDal(); movies.GetAllMovies(); HallDal halls = new HallDal(); halls.GetAllHalls(); MoviesAndHallsDal data = new MoviesAndHallsDal(); data.Halls = halls; data.Movies = movies; return(View(data)); }