Exemple #1
0
        public Tour AddNewItem(string name, string description, string start, string end, int distance)
        {
            ITourDAO  tourDao   = DALFactory.CreateTourDAO();
            IMapQuest mapQuest  = new MapQuest.MapQuest();
            string    imagePath = mapQuest.LoadImage(start, end);

            return(tourDao.AddNewItem(name, description, start, end, distance, imagePath));
        }
Exemple #2
0
        public Tour EditTour(Tour currentTour, string newName, string newDescription, string newStart, string newEnd, int newDistance)
        {
            ITourDAO  tourDao   = DALFactory.CreateTourDAO();
            IMapQuest mapQuest  = new MapQuest.MapQuest();
            string    imagePath = mapQuest.LoadImage(newStart, newEnd);

            return(tourDao.EditTour(currentTour, newName, newDescription, newStart, newEnd, newDistance, imagePath));
        }