/// <summary> /// Processes the specified arguments. /// </summary> /// <param name="args">The arguments.</param> public override void Process(ActionExecutingArgs args) { if (args.Context.Controller is FormController) { new ApplyRulesToFormViewModelAttribute().OnActionExecuting(args.Context); } }
protected override void ActionExecuting(ActionExecutingArgs actionExcutingArgs) { string controllerName = actionExcutingArgs.ControllerName.ToLower(); string actionName = actionExcutingArgs.ActionName.ToLower(); base.ActionExecuting(actionExcutingArgs); }