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