예제 #1
0
        public Voyage Ajout(Voyage voyage)
        {
            var voyageData = new VoyageData();

            if (voyage.DateAller > DateTime.Now.AddDays(3) && voyage.DateRetour > voyage.DateAller.AddDays(2) &&
                new DestinationData().GetById(voyage.DestinationId) != null)
            {
                voyageData.Ajout(voyage);
            }


            return(voyage);
        }