Beispiel #1
0
        public ActionResult Index(Guid projectTaskId)
        {
            IQueryable <ProjectTaskReply> model = _iProjectTaskReplyService.GetAll(a => a.ProjectTaskId == projectTaskId);

            ViewBag.UserId        = _iUserInfo.UserId;
            ViewBag.projectTaskId = projectTaskId;
            return(View(model));
        }
Beispiel #2
0
        public ActionResult Index(Guid itemId, int pageIndex = 1, int pageSize = 10)
        {
            IQueryable <ProjectTaskReply> model = _iProjectTaskReplyService.GetAll(a => a.ProjectTaskId == itemId);
            var result = model.Select(a => new
            {
                a.Id,
                a.UserId,
                a.ProjectTaskId,
                a.ProjectTaskReplyObjective
            }).ToPagedList(pageIndex, pageSize);

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