public void OnActionExecuting(ActionExecutingContext context) { var paramterValue = (int)context.ActionArguments["randomNumber"]; context.ActionArguments["randomNumber"] = paramterValue + _random.GetRandamNumber(); }
public void OnActionExecuting(ActionExecutingContext context) { context.ActionArguments["randomNumber"] = _random.GetRandamNumber(); }