public ActionResult Index(Guid KnowledgeId)
        {
            IQueryable <KnowledgeReply> model = _iKnowledgeReplyService.GetAll(a => a.KnowledgeId == KnowledgeId);

            ViewBag.UserId      = _iUserInfo.UserId;
            ViewBag.KnowledgeId = KnowledgeId;
            return(View(model));
        }
        public ActionResult Index(Guid itemId, int pageIndex = 1, int pageSize = 10)
        {
            IQueryable <KnowledgeReply> model = _iKnowledgeReplyService.GetAll(a => a.KnowledgeId == itemId);
            var result = model.Select(a => new
            {
                a.Id,
                a.UserId,
                a.KnowledgeId,
                a.KnowledgeReplyObjective
            }).ToPagedList(pageIndex, pageSize);

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