//[HttpPost]
        //public ActionResult ViewStudentResult(int studentId)
        //{

        //    IEnumerable<Student> students = studentResultManager.GetAllStudent;
        //    ViewBag.Students = students;
        //    IEnumerable<StudentResultViewModel> studentResults = studentResultManager.GetStudentResultByStudentId(studentId);
        //    return View(studentResults);
        //   // return new Rotativa.ActionAsPdf("ViewStudentResult");
        //}


        public JsonResult GetStudentResultByStudentId(int studentId)
        {
            IEnumerable <StudentResultViewModel> studentResults = studentResultManager.GetStudentResultByStudentId(studentId);

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