コード例 #1
0
        protected override async Task Handle(DeleteTripCommand request, CancellationToken cancellationToken)
        {
            var trip = await _tripsRepository.GetBriefByIdAsync(request.TripId);

            if (trip != null)
            {
                _tripsRepository.Delete(trip);
            }
        }