My ASP.NET MVC application is a small part of a bigger ColdFusion app that is going to be soon replaced completely. I\'m passing some parameters from ColdFusion part through
If you already implemented a base controller just override its OnActionExecuting() method:
public class YourBaseController : Controller
{
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
base.OnActionExecuting(filterContext);
if(somethingIsWrong)
{
filterContext.Result = new RedirectToRouteResult(
new System.Web.Routing.RouteValueDictionary { ... });
}
}
}