using System; using System.Text; using System.Web.Mvc; using Pilotfish.Afx.Services.Workflows; namespace Neo.Legitimate.Web.Controllers { public class ErrorController : Controller { public ActionResult ShowSecurityError(long workflowid, long itemid, string returnUrl) { var workflowDatabase = new WorkflowsDatabase(); if(workflowDatabase.CheckWorkflowInstanceSecurity(workflowid, itemid, Profile.UserName)) { return Redirect(Encoding.ASCII.GetString(Convert.FromBase64String(returnUrl))); } return View("ShowSecurityError"); } public ActionResult ShowError(string msg) { return View("ShowError"); } } }