public async Task CancelRide(int driverId, int id, [FromBody] CancelRideCommand command) { command.SetArguments(driverId, id); await Mediator.Send(command); }
public async Task CancelCurrentRide(int customerId, int id, [FromBody] CancelRideCommand command) { command.SetArguments(customerId, id); await Mediator.Send(command); }