示例#1
0
        public void OnActionExecuting(ActionExecutingContext context)
        {
            var paramterValue = (int)context.ActionArguments["randomNumber"];

            context.ActionArguments["randomNumber"] = paramterValue + _random.GetRandamNumber();
        }
示例#2
0
 public void OnActionExecuting(ActionExecutingContext context)
 {
     context.ActionArguments["randomNumber"] = _random.GetRandamNumber();
 }