public ActionResult EditChapter(mst_chapter chapter)
        {
            mst_chapterMain stdMain = new mst_chapterMain();

            stdMain.EditChapter(chapter);

            return(RedirectToAction("AllChapterList", new { session = chapter.session, subject_id = chapter.subject_id, class_id = chapter.class_id, section_id = chapter.section_id }));
        }
        public ActionResult AllSubjectOfTeacher()
        {
            mst_chapterMain stdMain = new mst_chapterMain();

            mst_sessionMain sess = new mst_sessionMain();

            return(View(stdMain.AllSubjectOfTeacher(sess.findFinal_Session(), int.Parse(Request.Cookies["loginUserId"].Value.ToString()))));
        }
        public ActionResult EditChapter(string session, int class_id, int subject_id, int chapter_id, int section_id)
        {
            mst_chapterMain stdMain = new mst_chapterMain();

            ViewData["Subject_id"] = subject_id;
            ViewData["Class_id"]   = class_id;
            ViewData["section_id"] = section_id;
            ViewData["session"]    = session;

            return(View(stdMain.FindChapter(session, class_id, subject_id, chapter_id, section_id)));
        }
        public ActionResult AllChapterList(string session, int subject_id, int class_id, int section_id)
        {
            mst_chapterMain stdMain = new mst_chapterMain();



            ViewData["session"]    = session;
            ViewData["subject_id"] = subject_id;
            ViewData["class_id"]   = class_id;
            ViewData["section_id"] = section_id;

            return(View(stdMain.AllChapterList(session, subject_id, class_id, section_id)));
        }