Create IResult-returning static methods #33729
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-minimal-actions
Controller-like actions for endpoint routing
Milestone
IResult
-returning static methods would allow something likeusing static Microsoft.AspNetCore.Http.Results
and makes for better return type inference for IResult-returning lambdas, so you don't have to do casting like the following you have to do using constructors today.With,
IResult
returningNotFound
andOk
methods the(IResult)
casting can be removed.The text was updated successfully, but these errors were encountered: