public IActionResult CancelBooking(int bookid)//for canceling the booking { int logged = Convert.ToInt32(HttpContext.Session.GetInt32("Logged")); if (logged == 1) { MovieInfo Movie = new MovieInfo(); Movie = MovieDBObj.BookedMovie(bookid); return(View(Movie)); } else { return(RedirectToAction("../Movie/Home")); } }