Exemplo n.º 1
0
        /// <summary>
        /// 通用获取答案
        /// 此方法获取到的实体对象中的answerContent为字符串,
        /// 请根据自己业务答案实体,在脚本中通过JSON.parse()转换成JSON对象
        /// </summary>
        public JsonResult GetAnswer(long doId, int answerType)
        {
            var answers = workService.GetAnswers(doId, answerType);

            return(Json(new ReturnResult <List <WorkAnswerContract> >(answers)));
        }