//知识标题、知识标签、上传者的NickName //检索范围为审核未通过 或者 已通过 public ActionResult Search(int numOnePage, int pageIndex, string keyword) { using (RRDLEntities db = new RRDLEntities()) { keyword = System.Web.HttpUtility.UrlDecode(keyword); AriticleService ariticleService = new AriticleService(db); List<Ariticle> finalList = new List<Ariticle>(); List<Ariticle> list = new List<Ariticle>(); list = ariticleService.KnowledgeManageSearchAriticles(keyword, numOnePage, pageIndex); //Tags Title NickName int count = ariticleService.KnowledgeManageSearchAriticlesCount(keyword); List<AriticleViewModel> Viewlist = SimplifyAriticle(list); string result = JsonConvert.SerializeObject(Viewlist); result = result + "ContentAndCount" + count; return Content(result); } }