using System.Web.Mvc; using Neo.Legitimate.Applications.Models; using Neo.Legitimate.Data.Models; using Pilotfish.Afx.Mvc; using Neo.Legitimate.Common; using System.Linq; namespace Neo.Legitimate.Applications.Controllers { public partial class ApplicationsController : Neo.Legitimate.Common.ControllerBase { #region Action Results #region PurificationVerifiedLinkedToActiveOlas public ActionResult PurificationVerifiedLinkedToActiveOlas() { if (!SecurityHelper.UserHasAccessToSecurable(Profile.Securables.ToList(), Securable.ApplicationsModule_Purification_ManageLegitimateLicencesLinkedToActiveOLASlicences)) { return RedirectToAction("Default", "Applications"); } var database = new LegitimateDatabase(); var model = new PurificationVerifiedLinkedToActiveOlasModel(); try { model.LicencesLinkedToActiveOlas = database.GetVerifiedLicencesLinkedToActiveOLASGet(); } catch { } ViewBag.Controller = "Applications"; ViewBag.Page = "PurificationVerifiedLinkedToActiveOlas"; return View("PurificationVerifiedLinkedToActiveOlas", model); } #endregion #endregion #region JSON endpoints #endregion } }