Example #1
0
        public void EditPhotos(int eventId, List <string> photoNames)
        {
            var photos = photoNames.Select(x => new Photo
            {
                EventId   = eventId,
                PhotoName = x
            }).ToList();

            _photosRepository.InsertNewPhotos(eventId, photos);
            _photosRepository.RemoveDeletedPhotos(photos);
        }