using System.Web.Mvc; using Neo.Legitimate.IntegrationConsole.Models; using Neo.Legitimate.Data.Models; using Pilotfish.Afx.Mvc; using System; using System.Collections.Generic; using System.Data.Entity; using Neo.Legitimate.Common; using System.Xml.Linq; using System.IO; namespace Neo.Legitimate.IntegrationConsole.Controllers { public class IntegrationConsoleController : Controller { #region Action Results #region Default public ActionResult Default(long appDetailID) { var database = new LegitimateDatabase(); var app = database.GetApplicationRequestDetail_ViewOnly(appDetailID); var model = new DefaultModel(); if (app.PrecheckDetailID.HasValue) { var precheck = database.GetPrecheckDetail(app.PrecheckDetailID.Value, (long)Defaults.SystemUserID); if (precheck.NltisXmlDataFound.HasValue && precheck.NltisXmlDataFound.Value==true && precheck.NltisXml != null) { model.OLASResults = OlasXmlHelper.GetLicences(precheck.NltisXml, false); } } ViewBag.Controller = "IntegrationConsole"; ViewBag.Page = "Integration Details"; return View("Default", model); } #endregion #endregion } }