Пример #1
0
        public static void UpdateAdRecord(AdRecordInfo adRecord)
        {
            AdRecordInfo info = ReadAdRecord(adRecord.ID, 0);

            dal.UpdateAdRecord(adRecord);
            if (adRecord.AdID != info.AdID)
            {
                AdBLL.ChangeAdCount(info.AdID, ChangeAction.Minus);
                AdBLL.ChangeAdCount(adRecord.AdID, ChangeAction.Plus);
            }
        }
Пример #2
0
 public static void DeleteAdRecord(string strID, int userID)
 {
     AdBLL.ChangeAdCountByGeneral(strID, ChangeAction.Minus);
     dal.DeleteAdRecord(strID, userID);
 }
Пример #3
0
 public static int AddAdRecord(AdRecordInfo adRecord)
 {
     adRecord.ID = dal.AddAdRecord(adRecord);
     AdBLL.ChangeAdCount(adRecord.AdID, ChangeAction.Plus);
     return(adRecord.ID);
 }