コード例 #1
0
        public async Task <IActionResult> Delete([FromRoute] Guid tripId)
        {
            var deleted = await _tripService.DeleteTripAsync(tripId);

            if (deleted)
            {
                return(NoContent());
            }

            return(NotFound());
        }
コード例 #2
0
 public async Task HandleAsync(DeleteTrip command)
 {
     await _trip.DeleteTripAsync(command.TripId);
 }