using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using Neo.Legitimate.VerificationConsole.Models; using Neo.Legitimate.Data.Models; using Pilotfish.Afx.Mvc; using Pilotfish.Afx.Services.Forms; using Pilotfish.Afx.Services.Forms.Entities; using Pilotfish.Afx.Services.Workflows; using Neo.Legitimate.Common; using Neo.Legitimate.Data; using Pilotfish.Afx.Services.Documents; namespace Neo.Legitimate.VerificationConsole.Controllers { [Authorize] public partial class VerificationConsoleController : Neo.Legitimate.Common.ControllerBase { private const int _precheckEntityID = 1015; #region Action Results #region Precheck public ActionResult Precheck(long precheckdetailid) { var database = new LegitimateDatabase(); var documentDatabase = new DocumentsDatabase(); var application = database.GetPrecheckDetail(precheckdetailid, Profile.UserID); if (application != null) { var entityID = _precheckEntityID; var itemID = precheckdetailid; var model = new PrecheckModel { RequiredDocuments = database.GetPrecheckDocumentList(precheckdetailid), Questions = documentDatabase.GetDocumentTypeQuestions(), Application = application, entityID = entityID, itemID = itemID }; ViewBag.Controller = "Verification Details"; ViewBag.Page = "Verification Details"; return View("Precheck", model); } return View("Precheck"); } #endregion #endregion #region JSON endpoints #endregion } }