public ActionResult Honors(HonorsPostModel honorsPostModel) { if (honorsPostModel.Validate()) { ReportRequestHandler.ExecuteReportRequest(Repository, honorsPostModel, User.Identity.Name); //Message = "Request has been submitted, you will receive an email when it is ready."; Message = "Request has been submitted, Check back in a few minutes to see if it is ready."; } honorsPostModel.Colleges = Repository.OfType<College>().Queryable.Where(a => a.Display).ToList(); honorsPostModel.HonorsReports = Repository.OfType<HonorsReport>().Queryable.Where(a => a.User.LoginId == User.Identity.Name).ToList(); return View(honorsPostModel); }
public ActionResult Honors() { var viewModel = new HonorsPostModel(); viewModel.TermCode = TermService.GetCurrent().Id; viewModel.Colleges = Repository.OfType<College>().Queryable.Where(a => a.Display).ToList(); viewModel.HonorsReports = Repository.OfType<HonorsReport>().Queryable.Where(a => a.User.LoginId == User.Identity.Name).ToList(); return View(viewModel); }