public _QiuZhi GetQiuZhiDetail(long id, long userID, Paging page) { _QiuZhi model = ModelConvertHelper <_QiuZhi> .ConverToModel(dal.GetQiuZhiDetail(id, userID)); if (model != null) { model.Comments = CommentBLL.Instance.GetCommentCallBack(id, CommentEnumType.QiuZhi.GetHashCode(), PriseEnumType.QiuZhiComment.GetHashCode(), userID, page); return(model); } return(null); }
public ActionResult Detail(long id = 0) { if (id > 0) { Paging page = InitPage(); _QiuZhi model = QiuZhiBLL.Instance.GetQiuZhiDetail(id, UserID, page); if (model == null) { return(RedirectToAction("Index")); } ViewBag.canSeeContact = UserInfo != null && (model.Publisher == UserID.ToString() || FeeHRBLL.Instance.IsPayContact(UserID, id, 2)); return(View(model)); } else { return(RedirectToAction("Index")); } }