Example #1
0
        public IActionResult DeleteById(string ids)
        {
            if (ids.IsEmpty())
            {
                return(Error("删除失败"));
            }
            var idsArray = _adApp.DeleteById(ids);

            foreach (int adId in idsArray)
            {
                SiteManagerCache.RemoveAdvertising(adId);
            }

            return(Success("删除成功"));
        }
Example #2
0
 public IActionResult DeleteById(int id)
 {
     _adApp.DeleteById(id);
     SiteManagerCache.RemoveAdvertising(id);
     return(Success("删除成功"));
 }