public ActionResult RequestStatus() { try { if (User.IsInRole("Student")) { if (!WebSettings.IsValidationOpen()) { return(RedirectToAction("StudentScholarship")); } ViewBag.errorMessage = TempData["errorMessage"]; return(View(studentActions.GetMyRequest(WebSettings.CurrentPeriod().PeriodID, User.Identity.GetUserId()))); } else { TempData["errorMessage"] = "Sorry you do not have access."; return(RedirectToAction("Announcement", "WebsiteContent")); } } catch (Exception e) { ViewBag.errorMessage = "There was an error in displaying your validation requests. Please try again, thank you!" + e.ToString(); return(View()); } }