public SettingEntity Create(SettingEntity entity) { try { _settingRepository.Insert(entity); return(entity); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public AdvertisementEntity Create(AdvertisementEntity entity) { try { _advertisementRepository.Insert(entity); return(entity); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public PublishProductEntity Create(PublishProductEntity entity) { try { _publishproductRepository.Insert(entity); return(entity); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public ChannelEntity Create(ChannelEntity entity) { try { _channelRepository.Insert(entity); return(entity); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public ResourceEntity Create(ResourceEntity entity) { try { _resourceRepository.Insert(entity); return(entity); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }