Пример #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);
 }