public BookingRequest Update(BookingRequest booking)
        {
            Delete(booking.RequestId);
            Save(booking);

            return(booking);
        }
        public int Save(BookingRequest booking)
        {
            int id = bookings.Max(b => b.RequestId) + 1;

            booking.RequestId = id;
            bookings.Add(booking);

            return(id);
        }
Beispiel #3
0
 public BookingRequestedEvent(BookingRequest request, Guid bookingRequestId)
 {
     Request          = request;
     BookingRequestId = bookingRequestId;
 }