Exemple #1
0
        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;
 }
Exemple #3
0
 public UpdateBookingsQuery(UpdateBookingViewModel updateBookingViewModel)
 {
     UpdateBookingViewModel = updateBookingViewModel;
 }