コード例 #1
0
        public async Task <bool> AcceptBooking([FromBody] AcceptBookingViewModel acceptBookingViewModel)
        {
            await mediator.Send(new AcceptBookingsQuery(acceptBookingViewModel));

            var isSuccess = await mediator.Send(new ScheduleTripQuery(acceptBookingViewModel));

            return(isSuccess);
        }
コード例 #2
0
 public AcceptBookingsQuery(AcceptBookingViewModel acceptBookingViewModel)
 {
     AcceptBookingViewModel = acceptBookingViewModel;
 }
コード例 #3
0
 public ScheduleTripQuery(AcceptBookingViewModel acceptBookingViewModel)
 {
     AcceptBookingViewModel = acceptBookingViewModel;
 }