public async Task <IActionResult> Delete([FromRoute] Guid tripId) { var deleted = await _tripService.DeleteTripAsync(tripId); if (deleted) { return(NoContent()); } return(NotFound()); }
public async Task HandleAsync(DeleteTrip command) { await _trip.DeleteTripAsync(command.TripId); }