Exemple #1
0
        public ActionResult RemoveMovie()
        {
            MovieDal movies = new MovieDal();

            movies.GetAllMovies();
            return(View(movies));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }