Пример #1
0
 public bool Delete(SettingEntity entity)
 {
     try
     {
         _settingRepository.Delete(entity);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }
Пример #2
0
 public bool Delete(AdvertisementEntity entity)
 {
     try
     {
         _advertisementRepository.Delete(entity);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }
Пример #3
0
 public bool Delete(ChannelEntity entity)
 {
     try
     {
         _channelRepository.Delete(entity);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }
Пример #4
0
 public bool Delete(PublishProductEntity entity)
 {
     try
     {
         _publishproductRepository.Delete(entity);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }
Пример #5
0
 public bool Delete(ResourceEntity entity)
 {
     try
     {
         _resourceRepository.Delete(entity);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }
Пример #6
0
 public void Delete(int itemId)
 {
     _repo.Delete(itemId);
 }