示例#1
0
        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);
            }
        }
示例#2
0
        /// <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);
        }