Ejemplo n.º 1
0
        public IEnumerable <Tour> UpdateTourAndRefreshTourList(Tour tour, string name = null, string description = null)
        {
            try
            {
                if (name == null && tour.Name == name)
                {
                    name = tour.Name;
                }
                if (description == null && tour.Description == description)
                {
                    description = tour.Description;
                }

                tourDAO.UpdateTour(tour.ID, name, description);
            }catch (Exception e)
            {
                Debug.WriteLine(e.Message);
            }

            return(GetToursFromDB());
        }
Ejemplo n.º 2
0
 public async Task UpdateItem(Tour t)
 {
     _log.Debug("Update Tour with id: " + t.Id);
     await _tourDao.UpdateTour(t);
 }