Skip to content

Instantly share code, notes, and snippets.

@brooklynDev
Created February 15, 2012 20:38
Show Gist options
  • Save brooklynDev/1838845 to your computer and use it in GitHub Desktop.
Save brooklynDev/1838845 to your computer and use it in GitHub Desktop.
public class NGonActionFilterAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
filterContext.Controller.ViewBag.NGon = new ExpandoObject();
base.OnActionExecuting(filterContext);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment