Ejemplo n.º 1
0
 public bool Add(TourGalleriesDTO tourGalleries)
 {
     return(_tourGalleriesRepository.Add(new TourGalleries()
     {
         GalleryId = tourGalleries.GalleryId,
         TourId = tourGalleries.TourId
     }));
 }
Ejemplo n.º 2
0
        public bool Delete(TourGalleriesDTO tourGalleries)
        {
            var tourGallery = _tourGalleriesRepository.First(x => x.Id == tourGalleries.Id);

            if (tourGallery != null)
            {
                _tourGalleriesRepository.Delete(tourGallery);
                return(true);
            }

            return(false);
        }