//SINAV SİL
        public ActionResult DeleteExam(string ID)
        {
            QuestionsDA qda = new QuestionsDA();

            qda.DeleteExam(Convert.ToInt32(ID));
            return(RedirectToAction("Exams"));
        }
        //SINAV EKLE

        public ActionResult AddExam(QuestionsModel qts)
        {
            QuestionsDA qda = new QuestionsDA();

            qda.AddExam(qts);
            return(RedirectToAction("Questions"));
        }
        //SINAV DETAY SAYFASI
        public ActionResult DetailExam(string ID)
        {
            QuestionsDA qda = new QuestionsDA();

            DataModel.QuestionsModel qdm = new DataModel.QuestionsModel();
            qdm = qda.DetailExam(Convert.ToInt32(ID));

            return(View(qdm));
        }
        //DOĞRU CEVAP KONTROL
        public JsonResult ControlReply(string q1, string q2, string q3, string q4, string ID)
        {
            QuestionsDA qda = new QuestionsDA();

            DataModel.QuestionsModel qdm = new DataModel.QuestionsModel();
            qdm = qda.DetailExam(Convert.ToInt32(ID));

            return(Json(new { success = true, data = qdm }));
            //return Json(qdm);
        }
        //SINAV LİSTESİ
        public ActionResult Exams()
        {
            if (HttpContext.Session.GetString("Statu") == "2")
            {
                ViewBag.Statu = "2";
            }

            QuestionsDA           qda       = new QuestionsDA();
            List <QuestionsModel> questList = new List <DataModel.QuestionsModel>();

            questList = qda.ListQuestions();
            return(View(questList));
        }