public ActionResult Index2()
        {
            //To get details using AJAX Request
            List <VM_Subjects_Group> obj = VM_Subjects_Group.GetVM_Subjects_Group();

            ViewBag.EnrollmentNo = obj[0].ErollmentNo + 1;
            return(View(obj));
        }
        // GET: StudentSubject
        public ActionResult Index()
        {
            //To get details using Form Object and Submit C# Model Binding
            List <VM_Subjects_Group> obj = VM_Subjects_Group.GetVM_Subjects_Group();

            ViewBag.EnrollmentNo = obj[0].ErollmentNo + 1;
            return(View(obj));
        }
        public JsonResult GetJsonResult()
        {
            List <VM_Subjects_Group> obj = VM_Subjects_Group.GetVM_Subjects_Group();

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }