예제 #1
0
        public static bool DeletePhoto(int photoId)
        {
            string photoPath = GalleryHelper.GetPhotoPath(photoId);
            bool   flag      = (new PhotoGalleryDao()).DeletePhoto(photoId);

            if (flag)
            {
                StoreHelper.DeleteImage(photoPath);
            }
            return(flag);
        }
예제 #2
0
        public static DbQueryResult GetPhotoList(string keyword, int?categoryId, int pageIndex, PhotoListOrder order, int type, int pagesize = 20)
        {
            DbQueryResult photoList = GalleryHelper.GetPhotoList(keyword, categoryId, pageIndex, pagesize, order, type);

            return(photoList);
        }