public async Task <IActionResult> DeleteAsync(int id)
        {
            var result = await _tripService.DeleteAsync(id);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            var tripResource = _mapper.Map <Trip, TripResource>(result.Resource);

            return(Ok(tripResource));
        }
        public async Task <ActionResult <TripViewModel> > DeleteTripAsync(int idTrip)
        {
            try
            {
                await _tripService.DeleteAsync(idTrip);
            }
            catch (Exception exception)
            {
                BadRequest(exception);
            }

            return(Ok());
        }