コード例 #1
0
        public ActionResult StartTest()
        {
            // GettblSubjectForDrp();
            QuestionBL  topicBL       = new QuestionBL();
            tblConfigBL configBL      = new tblConfigBL();
            int         questionCount = int.Parse(ConfigurationManager.AppSettings["QuestionCount"].ToString());

            questionCount = int.Parse(configBL.GettblConfigByKeyName("QuestionCount").ConfigValue);

            topicBL.GetQuestionPaper(questionCount, int.Parse(Session["UserId"].ToString()));
            return(View());
        }
コード例 #2
0
        public ActionResult GettblConfigByKeyName(int ID /*string KeyName*/)
        {
            tblConfigBL topicBL = new tblConfigBL();

            return(Json(topicBL.GettblConfigByKeyName(ID), JsonRequestBehavior.AllowGet));
        }