public bool Delete(ChannelEntity entity) { try { _channelRepository.Delete(entity); return true; } catch (Exception e) { _log.Error(e,"数据库操作出错"); return false; } }
public ChannelEntity Create(ChannelEntity entity) { try { _channelRepository.Insert(entity); return entity; } catch (Exception e) { _log.Error(e,"数据库操作出错"); return null; } }