Пример #1
0
 public CreateReservation(Guid id, Guid cinemaId, Guid movieId, Guid hallId, Guid?customerId,
                          bool isPaymentUponArrival, DateTime dateTime, IEnumerable <SeatWriteModel> seats, ReserveeWriteModel reservee)
 {
     Id                   = id;
     CinemaId             = cinemaId;
     MovieId              = movieId;
     HallId               = hallId;
     CustomerId           = customerId;
     DateTime             = dateTime;
     IsPaymentUponArrival = isPaymentUponArrival;
     Seats                = seats;
     Reservee             = reservee;
 }
Пример #2
0
 public static Reservee AsValueObject(this ReserveeWriteModel reservee)
 => reservee is null ? null : new Reservee(reservee.FullName, reservee.Email, reservee.PhoneNumber);