public SettingEntity GetSettingById(int id) { try { return(_settingRepository.GetById(id)); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public ChannelEntity GetChannelById(int id) { try { return(_channelRepository.GetById(id)); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public AdvertisementEntity GetAdvertisementById(int id) { try { return(_advertisementRepository.GetById(id)); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public TagEntity GetTagById(int id) { try { return(_tagRepository.GetById(id));; } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public ContentEntity GetContentById(int id) { try { return(_contentRepository.GetById(id)); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public PublishProductEntity GetPublishProductById(int id) { try { return(_publishproductRepository.GetById(id));; } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public ResourceEntity GetResourceById(int id) { try { return(_resourceRepository.GetById(id));; } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(null); } }
public CMS GetById(int id) { return(_repo.GetById(id)); }