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