Example #1
0
        public IEnumerable <Itinerary> requestPossibleRoutesForCargo(TrackingId trackingId)
        {
            var cargo = _cargoRepository.find(trackingId);

            if (cargo == null)
            {
                return(new List <Itinerary>());
            }

            return(_routingService.fetchRoutesForSpecification(cargo.RouteSpecification));
        }