Exemple #1
0
        /// <summary>
        /// 获取新闻详情
        /// </summary>
        /// <param name="newsId"></param>
        /// <returns></returns>
        public NewsDetailModel GetNewsDetail(int newsId)
        {
            var result = _newsDal.GetNewsDetail(newsId);

            if (result == null)
            {
                _LogFactory.Error($"{GetType().Name}:{new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name}", "获取动态走势失败", new { NewsId = newsId });
                Function.ExceptionThrow("Error", "获取动态走势失败,请稍后再试");
            }
            return(result);
        }
Exemple #2
0
 public News GetNewsDetail(int id)
 {
     return(_newsDal.GetNewsDetail(id));
 }