Exemplo n.º 1
0
        static void deleteSmugImage(string article_uid, string albumid, string albumkey, string image_uid, string imagename)
        {
            string errmsg = "";

            List <SmugMugModel.Image> Imagelist = user.GetImages(false, "", true, 0, false, "", albumid, albumkey);

            foreach (Image im in Imagelist)
            {
                if (Convert.ToInt64(image_uid) == im.id)
                {
                    user.DeleteImage(im.id);
                    DataMine.spExecute("UpdateSmugGalleryTrackerTS", ref errmsg, "@article_uid", article_uid, "@image_uid", image_uid);
                }
            } // foreach
        }     // deleteSmugImage