diff --git a/aspnetcore/mvc/controllers/filters/sample/src/FiltersSample/Filters/SampleAsyncActionFilter.cs b/aspnetcore/mvc/controllers/filters/sample/src/FiltersSample/Filters/SampleAsyncActionFilter.cs index fe95547ed033..f90aba51f5e7 100644 --- a/aspnetcore/mvc/controllers/filters/sample/src/FiltersSample/Filters/SampleAsyncActionFilter.cs +++ b/aspnetcore/mvc/controllers/filters/sample/src/FiltersSample/Filters/SampleAsyncActionFilter.cs @@ -10,8 +10,8 @@ public async Task OnActionExecutionAsync( ActionExecutionDelegate next) { // do something before the action executes - await next(); - // do something after the action executes + var resultContext = await next(); + // do something after the action executes; resultContext.Result will be set } } -} \ No newline at end of file +}