Beispiel #1
0
        /// <summary>
        /// 根据试题ID获取问题信息
        /// </summary>
        /// <param name="paperID">试题ID</param>
        /// <returns></returns>
        public List <ProblemModel> GetProblemInfoByPaperID(Guid paperID)
        {
            List <V_Problem>    listM = _dal.GetProblemViewInfoByPaperID(paperID);
            List <ProblemModel> resM  = ProblemModel.GetList(listM);

            foreach (ProblemModel item in resM)
            {
                item.Answers = _answerDAL.GetAnswerViewInfoByProblemID(item.ID);
            }
            return(resM);
        }