/// <summary> /// 获取信息详情 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult BaseNewsDetails(int id) { HT.Model.ht_news model = BLLNews.GetNewsDetails(id); if (Request.IsAjaxRequest()) { apiResp.status = true; apiResp.result = model; return(Json(apiResp)); } return(View(model)); }
/// <summary> /// 获取信息详情 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult BaseNewsDetails(int id) { HT.Model.ht_news model = BLLNews.GetNewsDetails(id); if (model != null) { model.is_praise = BLLRelation.IsExistRelation(model.id.ToString(), BLLUser.GetUserId().ToString(), "praise"); } if (Request.IsAjaxRequest()) { apiResp.status = true; apiResp.result = model; return(Json(apiResp)); } return(View(model)); }