//
        // GET: /GradeValues/
        public ActionResult Index()
        {
            GradeValuesAccess g = new GradeValuesAccess();
            List<Semesters> items = g.getSemesters();

            return View(items);
        }
        public ActionResult SemesterFilter(int studentId)
        {
            GradeValuesAccess g = new GradeValuesAccess();

            /*
            List<Semesters> l = g.getSemesters();
            List<Semesters> result = new List<Semesters>();

            foreach (Semesters item in l)
            {
                result.Add(new Semesters { SemesterID = item.SemesterID, Name = item.Name, TimeStamp = item.TimeStamp, Realisations = null });
            }
            */

            List<Semesters> result = g.getSemesters(studentId);

            return Json(data: result);
        }