public ActionResult SingleKnowledgeList() { List <WrongKnowledgeInfo> WrongKnowledgeList = new List <WrongKnowledgeInfo>(); if (_paper.SelectPaper(SinglePaperID).State == 8) { List <CEDTS_User> StudList = _user.SelectUserByClassID(ClassID); List <int> StudIDList = new List <int>(); foreach (var stud in StudList) { StudIDList.Add(stud.UserID); } WrongKnowledgeList = _paper.SelectWKIByPUList(SinglePaperID, StudIDList); for (int i = 0; i < WrongKnowledgeList.Count; i++) { WrongKnowledgeList[i].KnowledgeName = _paper.SelectKnowledgeName(WrongKnowledgeList[i].KnowledgeID); } } return(PartialView(WrongKnowledgeList)); }