public static void DeleteFlashPhoto(string strID, int flashID) { UploadBLL.DeleteUploadByRecordID(TableID, strID); FlashBLL.ChangeFlashCountByGeneral(strID, ChangeAction.Minus); dal.DeleteFlashPhoto(strID); FlashBLL.RebuildFile(flashID); }
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); }
public static void UpdateFlashPhoto(FlashPhotoInfo flashPhoto) { dal.UpdateFlashPhoto(flashPhoto); UploadBLL.UpdateUpload(TableID, flashPhoto.FlashID, flashPhoto.ID, Cookies.Admin.GetRandomNumber(false)); FlashBLL.RebuildFile(flashPhoto.FlashID); }
public static void ChangeFlashPhotoOrder(ChangeAction action, int id, int flashID) { dal.ChangeFlashPhotoOrder(action, id); FlashBLL.RebuildFile(flashID); }