public static void UpdateGallery(Business.Gallery gallery)
        {
            if (gallery == null)
            {
                throw new ArgumentNullException("gallery");
            }

            gallery.Save();
        }
Beispiel #2
0
        /// <summary>
        /// Permanently delete the profile records associated with the specified <paramref name="gallery" />.
        /// </summary>
        /// <param name="gallery">The gallery.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="gallery" /> is null.</exception>
        public static void DeleteProfileForGallery(Business.Gallery gallery)
        {
            if (gallery == null)
            {
                throw new ArgumentNullException("gallery");
            }

            Factory.GetDataProvider().Profile_DeleteProfilesForGallery(gallery.GalleryId);
        }
        public static void DeleteGallery(Business.Gallery gallery)
        {
            if (gallery == null)
            {
                throw new ArgumentNullException("gallery");
            }

            gallery.Delete();

            ProfileController.DeleteProfileForGallery(gallery);
        }
Beispiel #4
0
 public static void UpdateGallery(Business.Gallery gallery)
 {
     gallery.Save();
 }
Beispiel #5
0
        public static void DeleteGallery(Business.Gallery gallery)
        {
            gallery.Delete();

            ProfileController.DeleteProfileForGallery(gallery);
        }
Beispiel #6
0
 public static void AddGallery(Business.Gallery gallery)
 {
     gallery.Save();
 }
Beispiel #7
0
 /// <summary>
 /// Permanently delete the profile records associated with the specified <paramref name="gallery" />.
 /// </summary>
 /// <param name="gallery">The gallery.</param>
 public static void DeleteProfileForGallery(Business.Gallery gallery)
 {
     Factory.GetDataProvider().Profile_DeleteProfilesForGallery(gallery.GalleryId);
 }