public Itinerary FromDTO(RouteCandidateDTO routeCandidate) { return new Itinerary(routeCandidate.Legs.Select(FromLegDTO)); }
private static void AssignCargoToRoute(TrackingId trackingId, RouteCandidateDTO selectedRoute) { var assignToRouteCommand = new AssignCargoToRouteCommand() { Route = selectedRoute, TrackingId = trackingId.IdString }; CommandPipeline.Process(assignToRouteCommand); }