public override bool Update(AdvertisementInfo adInfo) { var updated = base.Update(adInfo); AdvertisementManager.RemoveCache(adInfo.SiteId); return(updated); }
public void Delete(int siteId, int advertisementId) { base.Delete(advertisementId); AdvertisementManager.RemoveCache(siteId); }
public override int Insert(AdvertisementInfo adInfo) { adInfo.Id = base.Insert(adInfo); AdvertisementManager.RemoveCache(adInfo.SiteId); return(adInfo.Id); }