Esempio n. 1
0
        protected void ConfirmBtn_Click(object sender, EventArgs e)
        {
            String bookingId = "";

            controller.CreateNewBooking(scheduleId, memberId, ref bookingId);
            int NoOfRowsAffected = UpdateSeatBooking(bookingId);

            if (NoOfRowsAffected != 0)
            {
                Response.Redirect("~/MTS_UI/BookingConfirmationUI.aspx?BookingID=" + bookingId + "");
            }
            else
            {
                System.Web.HttpContext.Current.Response.Write("<SCRIPT>alert('" + " SelectedDatesCollection atleast 1 SeatAvailability seat to proceed" + "')</SCRIPT>");
            }
        }