using System.Web.Mvc; using System.Web.UI; using Neo.Afx.Security; using System; using System.Configuration; using System.Web.Profile; using System.Linq; using Neo.LegitimateLicences.Common; using System.Web.Security; using Neo.Afx.Services.Audits; using Neo.LegitimateLicences.Common.ViewModels; using Neo.LegitimateLicences.Common.Helpers; using Neo.Afx.Services.Workflows; using Neo.LegitimateLicences.Web.Models.Afx; using Neo.Afx.Services.Workflows.Entities; namespace Neo.LegitimateLicences.Web.Controllers { public partial class AfxController { #region WorkflowInstances public ActionResult WorkflowInstances(string viewName, long workflowID, string steps, string status) { var vm = new AfxWorkflowInstancesModel(); var wd = new WorkflowsDatabase(); vm.WorkflowInstances = wd.GetWorkflowInstances(workflowID, steps, status, Profile.UserID); ViewBag.Title = viewName; return View("~/Views/Shared/Afx/Instances/WorkflowInstances.cshtml", vm); } #endregion } }