Пример #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);
 }