// GET: Halls/Details/5
        public ActionResult Details(int id)
        {
            Hall h = hallManager.GetHallById(id);

            if (h == null)
            {
                return(HttpNotFound());
            }
            return(View(h));
        }
Exemple #2
0
        // GET: Hall
        public ActionResult Index()
        {
            if (ControllerContext.RouteData.GetRequiredString("id") == null)
            {
                return(HttpNotFound());
            }
            string now_screening_id = ControllerContext.RouteData.GetRequiredString("id");

            MovieBusinessLogic.HallManager hall_manager = new HallManager();

            var HallInfo = new HallDataModel()
            {
                screening_id = hall_manager.GetHallById(now_screening_id).screening_id,
                hall_id      = hall_manager.GetHallById(now_screening_id).hall_id,
                total        = hall_manager.GetHallById(now_screening_id).total,
                left         = hall_manager.GetHallById(now_screening_id).left,
            };

            return(View(HallInfo));
        }