public ActionResult AddHW(mst_class_notebook notebook)
        {
            mst_class_notebookMain main = new mst_class_notebookMain();

            main.AddWork(notebook);

            return(RedirectToAction("AllHWWorkList", new { session = notebook.session, subject_id = notebook.subject_id, class_id = notebook.class_id, section_id = notebook.section_id, chapter_id = notebook.chapter_id }));
        }
        public ActionResult DeleteHW(mst_class_notebook notebook)
        {
            mst_class_notebookMain main = new mst_class_notebookMain();

            notebook.work_type = "HW";
            main.deleteWork(notebook);

            return(RedirectToAction("AllHWWorkList", new { session = notebook.session, subject_id = notebook.subject_id, class_id = notebook.class_id, section_id = notebook.section_id, chapter_id = notebook.chapter_id }));
        }
        public ActionResult AllCWWorkList(string session, int subject_id, int class_id, int section_id, int chapter_id)
        {
            mst_class_notebookMain stdMain = new mst_class_notebookMain();


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

            return(View(stdMain.AllWorkList(session, subject_id, class_id, section_id, chapter_id, "CW")));
        }
        public ActionResult DeleteHW(string session, int class_id, int subject_id, int section_id, int chapter_id, int work_id)
        {
            mst_class_notebook     notebook = new mst_class_notebook();
            mst_class_notebookMain main     = new mst_class_notebookMain();

            notebook.session    = session;
            notebook.class_id   = class_id;
            notebook.subject_id = subject_id;
            notebook.section_id = section_id;
            notebook.chapter_id = chapter_id;
            notebook.work_type  = "HW";
            notebook.work_id    = work_id;

            return(View(main.findWork(notebook)));
        }