public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { await BindAttributeRunner.Run(context); if (!await AuthorizeRequestParams(context)) { context.Result = Unauthorized(); } else { await base.OnActionExecutionAsync(context, next); } }
/// <summary> /// Creates a new instance of the specified view model type and binds it using the standard request data. /// </summary> public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { await BindAttributeRunner.Run(context, next); await base.OnActionExecutionAsync(context, next); }