Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions WrapThat.Version/WebApplicationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public static WebApplication MapVersionApiEndpoints(this WebApplication app)
return app;
}

private static ActionResult<string> HandleRequest(Func<InfoController, ActionResult<string>> action)
private static object? HandleRequest<T>(Func<InfoController, ActionResult<T>> action)
{
var controller = new InfoController();
var actionResult = action(controller);
return actionResult as ActionResult<string>;
var actionResult = action(controller).Result as OkObjectResult;
return actionResult!.Value;
}
}
Loading