public ActionResult Index()
 {
     if (!Application.IsAuthenticated && Application.TeacherID == 0) {
         return RedirectToAction("SignIn", "Teacher");
     }
     var teacher = Application.Db.Teachers.Where(x => x.TeacherID == Application.TeacherID).SingleOrDefault();
     string username = teacher == null ? null : teacher.FirstName;
     TrainingViewModel model = new TrainingViewModel(username);
     return View(model);
 }
 //Harold's Code
 public ActionResult Training()
 {
     if (!Application.IsAuthenticated && Application.AdminType != 3) {
         ViewBag.Header = "Authorization Level Too Low";
         ViewBag.Message = "Your authorization is not valid for this type of operation";
         return View("Message", "_LayoutAdmin");
     }
     TrainingViewModel model = new TrainingViewModel("Administrator");
     return View(model);
 }