Skip to content

Commit

Permalink
Update src/OrchardCore/OrchardCore.DisplayManagement/Extensions/HttpC…
Browse files Browse the repository at this point in the history
…ontextExtensions.cs
  • Loading branch information
MikeAlhayek authored Aug 14, 2024
1 parent 8e12147 commit c84029d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static Task<ActionContext> GetActionContextAsync(this IHttpContextAccesso
return GetActionContextAsync(httpContext);
}

public static Task<ActionContext> GetActionContextAsync(this HttpContext httpContext)
public static async Task<ActionContext> GetActionContextAsync(this HttpContext httpContext)
{
var routeData = new RouteData();
routeData.Routers.Add(new RouteCollection());
Expand All @@ -33,9 +33,9 @@ public static Task<ActionContext> GetActionContextAsync(this HttpContext httpCon

foreach (var filter in filters)
{
filter.OnActionExecutionAsync(actionContext);
await filter.OnActionExecutionAsync(actionContext);
}

return Task.FromResult(actionContext);
return actionContext;
}
}

0 comments on commit c84029d

Please sign in to comment.