public JsonResult GetQuestionListById(Guid qTypeID, Guid qID) { List <QuestionVO> obj = null; JsonResult result = new JsonResult(); try { if (qTypeID == null && qTypeID == Guid.Empty) { return(Json(new { code = 1, msg = "问卷类型不存在", data = qTypeID }, JsonRequestBehavior.AllowGet)); } if (qID == null && qID == Guid.Empty) { return(Json(new { code = 1, msg = "问卷不存在", data = qID }, JsonRequestBehavior.AllowGet)); } obj = questionnaireService.GetQuestionListById(qTypeID, qID); } catch (Exception e) { } finally { result = Json(new { code = 0, msg = "成功", data = obj }, JsonRequestBehavior.AllowGet); } return(result); }