예제 #1
0
 public static void DeleteFlashPhoto(string strID, int flashID)
 {
     UploadBLL.DeleteUploadByRecordID(TableID, strID);
     FlashBLL.ChangeFlashCountByGeneral(strID, ChangeAction.Minus);
     dal.DeleteFlashPhoto(strID);
     FlashBLL.RebuildFile(flashID);
 }
예제 #2
0
 public static int AddFlashPhoto(FlashPhotoInfo flashPhoto)
 {
     flashPhoto.ID = dal.AddFlashPhoto(flashPhoto);
     UploadBLL.UpdateUpload(TableID, flashPhoto.FlashID, flashPhoto.ID, Cookies.Admin.GetRandomNumber(false));
     FlashBLL.ChangeFlashCount(flashPhoto.FlashID, ChangeAction.Plus);
     FlashBLL.RebuildFile(flashPhoto.FlashID);
     return(flashPhoto.ID);
 }
예제 #3
0
 public static void UpdateFlashPhoto(FlashPhotoInfo flashPhoto)
 {
     dal.UpdateFlashPhoto(flashPhoto);
     UploadBLL.UpdateUpload(TableID, flashPhoto.FlashID, flashPhoto.ID, Cookies.Admin.GetRandomNumber(false));
     FlashBLL.RebuildFile(flashPhoto.FlashID);
 }
예제 #4
0
 public static void ChangeFlashPhotoOrder(ChangeAction action, int id, int flashID)
 {
     dal.ChangeFlashPhotoOrder(action, id);
     FlashBLL.RebuildFile(flashID);
 }