-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Missing Ok()
in Controller
#2825
Comments
@Bartmax this feature is available in the One alternative is the |
I'm not doing any compatibility stuff here, while Ok is there, I'm not doing any webapi2, so I don't think importing that would actually fit. I found that ObjectResult (instead of HttpStatusCodeResult) being more accurate, also there's no method on base controller that returns either ObjectResult or HttpStatusCodeResult. I think there should be a It feels weird to have HttpBadRequest, HttpNotFound, HttpUnauthorized, Created, but not an HttpOk on base abstract class controller. This was kind of a question/suggestion. |
…roller` - #2825 - new class names align with existing types such as `HttpNotFoundResult` and `HttpNotFoundObjectResult` - remove similar types from WebApiCompatShim and use replacements in `ApiController` - `NegotiatedContentResult<T>` remains because Core doesn't have an exact replacement nits: - add missing periods in some `Controller` doc comments
Updated subject because this is no longer a question. |
hehe nice work @dougbu |
…roller` - #2825 - new class names align with existing types such as `HttpNotFoundResult` and `HttpNotFoundObjectResult` - remove similar types from WebApiCompatShim and use replacements in `ApiController` - `NegotiatedContentResult<T>` remains because Core doesn't have an exact replacement nits: - add missing periods in some `Controller` doc comments
…roller` - #2825 - new class names align with existing types such as `HttpNotFoundResult` and `HttpNotFoundObjectResult` - remove similar types from WebApiCompatShim and use replacements in `ApiController` - `NegotiatedContentResult<T>` remains because Core doesn't have an exact replacement nits: - add missing periods in some `Controller` doc comments
I think there's a missing helper in controller to return an object. or I can't find it :)
so
instead of:
The text was updated successfully, but these errors were encountered: