public ActionResult EditTestInfo(TestCourseVM tcvm)
        {
            if (!CheckCookie())
                return RedirectToAction("Index");

            tcvm.prof = Professor.Get(Session["User"].ToString());

            try
            {
                tcvm.test = Test.Get(Convert.ToInt32(tcvm.SelectedTestID));
            }
            catch
            {
                ModelState.AddModelError(String.Empty, "Failed to retrieve test.");
                return View("EditTest");
            }

            tcvm.testDateOpen = tcvm.test.StartDate.Date;
            tcvm.testTimeOpen = tcvm.test.StartDate.ToString();
            tcvm.testDateClose = tcvm.test.EndDate.Date;
            tcvm.testTimeClose = tcvm.test.EndDate.ToString();

            tcvm.getSectionsByTest(tcvm.SelectedTestID, tcvm.prof.Id);
            tcvm.GetBlackedOutDates();

            return View(tcvm);
        }