public ActionResult Index(Guid projectInfoId)
        {
            IQueryable <ProjectInfoReply> model = _iProjectInfoReplyService.GetAll(a => a.ProjectInfoId == projectInfoId);

            ViewBag.UserId        = _iUserInfo.UserId;
            ViewBag.projectInfoId = projectInfoId;
            return(View(model));
        }
示例#2
0
        public ActionResult Index(Guid itemId, int pageIndex = 1, int pageSize = 10)
        {
            IQueryable <ProjectInfoReply> model = _iProjectInfoReplyService.GetAll(a => a.ProjectInfoId == itemId);
            var result = model.Select(a => new
            {
                a.Id,
                a.UserId,
                a.ProjectInfoId,
                a.ProjectInfoReplyObjective
            }).ToPagedList(pageIndex, pageSize);

            return(Content(JsonConvert.SerializeObject(result)));
        }