コード例 #1
0
        public IActionResult BookHistory()// for showing the booking history of a user
        {
            int logged = Convert.ToInt32(HttpContext.Session.GetInt32("Logged"));

            if (logged == 1)
            {
                int UserID = Convert.ToInt32(HttpContext.Session.GetInt32("UserID"));
                MovieList = MovieDBObj.BookedList(UserID);
                return(View(MovieList));
            }
            else
            {
                return(RedirectToAction("../Movie/Home"));
            }
        }