using Neo.LegitimateLicences.Common; using Neo.LegitimateLicences.Common.Helpers; using System.Web.Mvc; using System.Linq; using System.Collections.Generic; using Neo.Afx.Security; using Neo.LegitimateLicences.NewRouteRequest.Models.Database; using Neo.Afx.Services.Workflows; using Neo.LegitimateLicences.Data.Models; using Neo.Afx.Services.Workflows.Entities; using System; namespace Neo.LegitimateLicences.NewRouteRequest { public partial class NewRouteRequestController : Controller { #region Licences public ActionResult Licences() { var itemId = WebHelper.ItemID; var db = new NewRouteDatabase(); var model = new NewRouteRequestFormModel { UserSecurables = (Profile.Securables != null) ? Profile.Securables.ToList() : new List(), Ui = new Afx.ViewModels.WorkflowConsoleUIProperties(), Licences = new List() }; model.Licences = db.GetNewRouteRequestLicences(itemId, Profile.UserID); return View("Licences", model); } #endregion } }