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); }
public BookingRequestedEvent(BookingRequest request, Guid bookingRequestId) { Request = request; BookingRequestId = bookingRequestId; }