public TicketViewModel(CustomerReservation model) : base(model) { SaveCommand = new SaveReservationCommand(this); Reservation.Customer.CustomerName = "Unknown"; Reservation.Customer.CustomerSurname = "Unknown"; Reservation.Reservation.Status = 1; }
/// <summary> /// Initializes a new instance of the ReservationViewModel class with existing movie. /// </summary> /// <param name="model">Reservation to edit.</param> public ReservationViewModel(CustomerReservation model) { Reservation = model; SaveCommand = new SaveReservationCommand(this); Controller = new ReservationController(); Seats = Controller.GetSeats(model.Reservation.ShowingId); SeatError = "Wybierz miejsce."; }
/// <summary> /// Initializes a new instance of the ReservationViewModel class with existing movie. /// </summary> /// <param name="model">Reservation to edit.</param> public ReservationViewModel(CustomerReservation model) : base(model) { SaveCommand = new SaveReservationCommand(this); Reservation.Reservation.Status = 0; }