using System.Web.Mvc; using Neo.Legitimate.OperatingLicences.Models; using Neo.Legitimate.Data.Models; using Pilotfish.Afx.Mvc; using Neo.Legitimate.Common; using System; using System.Linq; namespace Neo.Legitimate.OperatingLicences.Controllers { public partial class OperatingLicencesController : Neo.Legitimate.Common.ControllerBase { #region Action Results #region PurificationLicencesWithException public ActionResult PurificationLicencesWithException(string exception) { if (!SecurityHelper.UserHasAccessToSecurable(Profile.Securables.ToList(), Securable.OperatingLicencesModule_Purification)) { return RedirectToAction("Default", "OperatingLicences"); } var database = new LegitimateDatabase(); var model = new PurificationLicencesWithExceptionModel { Exception = exception, Licences = database.GetLicencesWithException(exception) }; ViewBag.Controller = "OperatingLicences"; ViewBag.Page = "PurificationLicencesWithException"; return View("PurificationLicencesWithException", model); } #endregion #endregion } }