コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
       }
 }
コード例 #3
0
        protected override void ActionExecuting(ActionExecutingArgs actionExcutingArgs)
        {
            string controllerName = actionExcutingArgs.ControllerName.ToLower();
            string actionName     = actionExcutingArgs.ActionName.ToLower();

            base.ActionExecuting(actionExcutingArgs);
        }