//Returns a View of a list of all semesters in the database and shows the current semester
        public ActionResult Index()
        {
            var semesters = from s in db.Semesters
                            select s;
            var viewModel = new SemesterIndexViewModel{
                Semesters = semesters.ToList(),
                Current = db.Current_Semester.First()
            };

            return View(viewModel);
        }
        //Returns a view that allows the user to set the current semester.
        public ActionResult EditCurrent()
        {
            var viewModel = new SemesterIndexViewModel
            {
                Semesters = db.Semesters.ToList(),
                Current = db.Current_Semester.First()
            };

            return View(viewModel);
        }