public ActionResult AllUncheckedQuestions(int sr_number, string session, int class_id, int subject_id, int chapter_id, int section_id)
        {
            copy_correctionMain main = new copy_correctionMain();
            copy_correction     copy = new copy_correction();

            copy.sr_number  = sr_number;
            copy.session    = session;
            copy.subject_id = subject_id;
            copy.class_id   = class_id;
            copy.section_id = section_id;
            copy.chapter_id = chapter_id;


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

            var result = main.AllUncheckedQuestions(copy);

            foreach (var corr in result)
            {
                corr.sr_number         = sr_number;
                corr.chapter_id        = chapter_id;
                corr.teacher_correctby = int.Parse(Request.Cookies["loginUserId"].Value.ToString());
                corr.class_id          = class_id;
                corr.section_id        = section_id;
                corr.subject_id        = subject_id;
            }

            return(View(result));
        }
        public ActionResult AddCheckedQuestion(IEnumerable <copy_correction> correction)
        {
            copy_correctionMain main = new copy_correctionMain();

            main.AddCheckedQuestion(correction);

            int    sr_number  = 0;
            string session    = "";
            int    class_id   = 0;
            int    subject_id = 0;
            int    chapter_id = 0;
            int    section_id = 0;

            foreach (var i in correction)
            {
                sr_number  = i.sr_number;
                session    = i.session;
                class_id   = i.class_id;
                subject_id = i.subject_id;
                chapter_id = i.chapter_id;
                section_id = i.section_id;
                break;
            }

            return(RedirectToAction("Student_Copy", new { session = session, class_id = class_id, subject_id = subject_id, section_id = section_id }));
        }
        public ActionResult AllUncheckedChapters(int sr_number, string session, int subject_id, int class_id, int section_id)
        {
            copy_correctionMain main = new copy_correctionMain();
            copy_correction     copy = new copy_correction();

            copy.sr_number  = sr_number;
            copy.session    = session;
            copy.subject_id = subject_id;
            copy.class_id   = class_id;
            copy.section_id = section_id;


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

            return(View(main.AllUncheckedChapterList(copy)));
        }