예제 #1
0
		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;
		}
예제 #2
0
        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);
        }