예제 #1
0
 public float GetPrixVoyage(Guid idVoyage, Guid idEtapeDe, Guid idEtapeA)
 {
     using (var manager = new TripAtLuxManager())
     {
         var voyage  = manager.VoyageOperation.GetById(idVoyage);
         var etapeDe = manager.EtapeOperation.GetById(idEtapeDe);
         var etapeA  = manager.EtapeOperation.GetById(idEtapeA);
         VoyageGuidageOperation voyageGuidageOperation = new VoyageGuidageOperation(_contextTrip);
         return(voyage.COUT_AU_KM * voyageGuidageOperation.GetKm(etapeDe, etapeA));
     }
 }
예제 #2
0
        public float GetPrixVoyage(VOYAGE voyage, VOYAGE_ETAPE etapeDe, VOYAGE_ETAPE etapeA)
        {
            VoyageGuidageOperation voyageGuidageOperation = new VoyageGuidageOperation(_contextTrip);

            return(voyage.COUT_AU_KM / voyageGuidageOperation.GetKm(voyage) * voyageGuidageOperation.GetKm(etapeDe, etapeA));
        }