예제 #1
0
        public _ZhaoPin GetZhaoPinDetail(long id, long userid, Paging page)
        {
            _ZhaoPin model = ModelConvertHelper <_ZhaoPin> .ConverToModel(dal.GetDetail(id, userid));

            if (model != null)
            {
                model.Comments = CommentBLL.Instance.GetCommentCallBack(id, CommentEnumType.ZhaoPin.GetHashCode(), PriseEnumType.ZhaoPinComment.GetHashCode(), userid, page);
                return(model);
            }
            return(null);
        }
예제 #2
0
        public ActionResult Detail(int id = 0)
        {
            if (id > 0)
            {
                Paging   page  = InitPage();
                _ZhaoPin model = ZhaoPinBLL.Instance.GetZhaoPinDetail(id, UserID, page);
                if (model == null)
                {
                    return(RedirectToAction("Index"));
                }

                ViewBag.canSeeContact = UserInfo != null && (model.Publisher == UserID.ToString() || FeeHRBLL.Instance.IsPayContact(UserID, id, 1));

                //List<JobComment> comments = JobCommentBLL.Instance.GetJobComments(id, 1, page);
                //ViewBag.Comments = comments;
                //ViewBag.CommentPage = page;
                //分页获取评论
                return(View(model));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }