예제 #1
0
        protected void btnPlaceOrder_Click(object sender, EventArgs e)
        {
            TicketServiceFacade ticketService = new TicketServiceFacade(new TicketServiceClientProxy());
            TicketPresentation  ticket        = ticketService.PurchaseReservedTicket(Basket.GetBasket().Reservation.EventId, Basket.GetBasket().Reservation.ReservationId.ToString());

            DisplayTicketReservations();

            if (ticket.WasAbleToPurchaseTicket)
            {
                lblThankYou.Text = "<h2>Thank you for your order.</h2>" + ticket.Description;
            }
            else
            {
                lblThankYou.Text = "<h2>Sorry there was a problem with your order.</h2>" + ticket.Description;
            }
        }
예제 #2
0
 private void DisplayTicketReservations()
 {
     lblBasketContents.Text = Basket.GetBasket().Reservation.Description;
 }