public ActionResult Dangki()
        {
            var school = (T_DM_Truong)Session[Constant.SCHOOL_SESSION];

            if (school == null)
            {
                return(RedirectToRoute("login"));
            }
            using (var hCMLopRepository = new T_DM_LopService())
            {
                List <T_DM_Lop> t_DM_Lops = hCMLopRepository.GetT_DM_LopsBySchoolId(school.SchoolID);
                using (var hCMHocSinhRepository = new T_DM_HocSinhService())
                {
                    List <T_DM_HocSinh> t_DM_HocSinhs = hCMHocSinhRepository.GetT_DM_HocSinhsByClassId(t_DM_Lops[0].LopID.Trim());
                    ViewBag.Lop     = t_DM_Lops;
                    ViewBag.HocSinh = t_DM_HocSinhs;
                    using (var kHHTLinhVucRepository = new KHHTLinhVucService())
                    {
                        List <KHKTLinhVucThamGia> kHKTLinhVucThamGias = kHHTLinhVucRepository.GetKHKTLinhVucThamGias();
                        ViewBag.LinhVuc = kHKTLinhVucThamGias;
                    }
                }
            }


            return(View());
        }
        public ActionResult GetHocSinh(string lopId)
        {
            var school = (T_DM_Truong)Session[Constant.SCHOOL_SESSION];

            if (school == null)
            {
                return(RedirectToRoute("login"));
            }
            using (var hCMHocSinhRepository = new T_DM_HocSinhService())
            {
                List <T_DM_HocSinh> t_DM_HocSinhs = hCMHocSinhRepository.GetT_DM_HocSinhsByClassId(lopId.Trim());

                return(Json(new ReturnFormat(200, "success", t_DM_HocSinhs), JsonRequestBehavior.AllowGet));
            }
        }