using System.Web.Mvc; using Neo.Legitimate.Applications.Models; using Neo.Legitimate.Data.Models; using Pilotfish.Afx.Mvc; using System.Collections.Generic; using System.Linq; using Neo.Legitimate.Common.Helpers; using Neo.Legitimate.Common; namespace Neo.Legitimate.Applications.Controllers { public partial class ApplicationsController : Neo.Legitimate.Common.ControllerBase { #region Action Results #region Exceptions public ActionResult Exceptions() { if (!SecurityHelper.UserHasAccessToSecurable(Profile.Securables.ToList(), Securable.ApplicationsModule_Exceptions)) { return RedirectToAction("Default", "Applications"); } var database = new LegitimateDatabase(); var model = new ExceptionModel { ExceptionTasks = database.GetOutstandingExceptionTasks(Profile.UserID) }; WebHelper.SetLastPageVisited(HttpContext, "Applications/Exceptions"); ViewBag.Controller = "Applications"; ViewBag.Page = "Exceptions"; return View("Exceptions", model); } #endregion #endregion #region JSON endpoints #endregion } }