private void OnRoomsReserved(RoomsReserved @event) { var reservation = new Reservation { Id = @event.ReservationId, RoomTypeId = @event.RoomTypeId, GuestId = @event.GuestId, NoOfUnits = @event.NoOfUnits, CheckInDate = @event.CheckInDate, CheckoutDate = @event.CheckoutDate }; _reservationsRepository.Save(reservation); }
private void OnRoomsReserved(RoomsReserved roomsReserved) { _roomsReserved.Add(roomsReserved); }