Exemplo n.º 1
0
        public async Task <ActionResult> AddItemToPackingList(int tripId, [FromBody] TripStandardListItemDTO item)
        {
            try
            {
                TripAdditionalInfoDTO tripInfo = await _tripService.AddItemToPackingList(tripId, item);

                return(Ok(tripInfo));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }