public static IAction AddRelatedAction(string description, string area, string controller, string action, IDictionary parameters) { const string RelatedActionsKey = "actions"; IRailsEngineContext ctx = MonoRailHttpHandler.CurrentContext; IAction ac; var related = (IList) ctx.Flash[RelatedActionsKey]; related = (related ?? new ArrayList()); related.Add(ac = new MonoRailAction(description, area, controller, action, parameters)); ctx.Flash[RelatedActionsKey] = related; return ac; }
public static IAction AddRelatedAction(string description, string area, string controller, string action, IDictionary parameters) { const string RelatedActionsKey = "actions"; IRailsEngineContext ctx = MonoRailHttpHandler.CurrentContext; IAction ac; var related = (IList)ctx.Flash[RelatedActionsKey]; related = (related ?? new ArrayList()); related.Add(ac = new MonoRailAction(description, area, controller, action, parameters)); ctx.Flash[RelatedActionsKey] = related; return(ac); }