public async Task <bool> UpdateBooking([FromBody] UpdateBookingViewModel updateBookingViewModel) { await mediator.Send(new UpdateBookingsQuery(updateBookingViewModel)); return(await mediator.Send(new UpdateBookingTripInfoQuery(updateBookingViewModel))); }
public UpdateBookingTripInfoQuery(UpdateBookingViewModel updateBookingViewModel) { UpdateBookingViewModel = updateBookingViewModel; }
public UpdateBookingsQuery(UpdateBookingViewModel updateBookingViewModel) { UpdateBookingViewModel = updateBookingViewModel; }