Exemple #1
0
        public ActionResult CancelReservation(int reservationID)
        {
            CinemaWebServiceClient c = new CinemaWebServiceClient();

            c.updateReservationStatus(reservationID, "Cancelled");

            return(RedirectToAction("MyReservation"));
        }
Exemple #2
0
        public ActionResult Pay(reservation reservation)
        {
            if (Session["email"] == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            CinemaWebServiceClient c = new CinemaWebServiceClient();

            c.updateReservationStatus(reservation.reservationID, "Paid");
            return(RedirectToAction("MyReservation"));
        }