Ejemplo n.º 1
0
        public bool AddTour(String UUID, string name, string from, string to, string description, string route_type)
        {
            //Um das foto aus dem request zu holen und um FIlesystem zu speichern
            string pic_path = tourItemFileSystem.SaveImage(from, to);

            tourItemDatabase.AddTour(UUID, name, from, to, pic_path, description, route_type);

            return(true);
        }
Ejemplo n.º 2
0
        private async Task <List <TourItem> > GetListAsync(string itemName, string startName, string goalName, DateTime dateTime, string method)
        {
            List <TourItem> list = (List <TourItem>) await Task.Run(() => tourItemDAO.AddTour(itemName, startName, goalName, dateTime, method));

            return(list);
        }
 public bool AddTour(TourItem tour)
 {
     return(tourItemDAO.AddTour(tour));
 }