Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVC's action result naming changes #153

Open
kichalla opened this issue Feb 19, 2016 · 1 comment
Open

MVC's action result naming changes #153

kichalla opened this issue Feb 19, 2016 · 1 comment

Comments

@kichalla
Copy link
Member

Following methods on the Controller base class have been renamed for the sake of consistency and making them less verbose.

HttpUnauthorized => Unauthorized
HttpNotFound(and its overloads) => NotFound
HttpBadRequest(and its overloads) => BadRequest

Following action result types have also been renamed. The Http prefix has been removed.

Microsoft.AspNetCore.Mvc.HttpUnauthorizedResult => Microsoft.AspNetCore.Mvc.UnauthorizedResult
Microsoft.AspNetCore.Mvc.HttpOkResult => Microsoft.AspNetCore.Mvc.OkResult
Microsoft.AspNetCore.Mvc.HttpOkObjectResult => Microsoft.AspNetCore.Mvc.OkObjectResult
Microsoft.AspNetCore.Mvc.HttpNotFoundResult => Microsoft.AspNetCore.Mvc.NotFoundResult
Microsoft.AspNetCore.Mvc.HttpNotFoundObjectResult => Microsoft.AspNetCore.Mvc.NotFoundObjectResult
Microsoft.AspNetCore.Mvc.HttpStatusCodeResult = > Microsoft.AspNetCore.Mvc.StatusCodeResult

@kichalla kichalla added this to the 1.0.0-rc2 milestone Feb 19, 2016
@aspnet aspnet locked and limited conversation to collaborators Feb 19, 2016
@kichalla
Copy link
Member Author

Please use the issue aspnet/Mvc#4118 for discussion

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant