Ejemplo n.º 1
0
        /// <summary>
        /// Delete image
        /// </summary>
        /// <param name="ctx"></param>
        /// <param name="ad_image_id"></param>
        /// <returns></returns>
        public static int DeleteImage(Ctx ctx, int ad_image_id)
        {
            MImage mimg = new MImage(ctx, ad_image_id, null);

            if (mimg.Delete(true))
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }