In this video, learn about the changes from MVC5 and WebAPI 2.2 in regards to controllers and actions.
- [Instructor] This section is pretty brief,…I just want to call out the differences…between prior versions and ASP.NET Core,…and a lot of these have already been mentioned…but it's worth calling them out again.…So in ASP.NET Core, we only have controllers.…AsyncController, and APIController are all supported…now by just one class called Controller.…All action methods on the Controller class return…an IActionResult or Task of IActionResult,…or a derivative of IActionResult.…
And this is different than prior where it might return…IActionResult or if it was an API style method,…an IHttp ActionResult,…so it's all been consolidated into one.…There's also a whole host of additional helper methods…built into the base controller class, for example,…NoContent, OK, BadRequest, you don't have to remember…the different HttpStatusCodes,…you can call this helper method to return…the appropriate content.…
Another change between web API and ASP.NET Core…is that in web API 2.2 you could name your action method…based on the HTTP verb it represented,…
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages
- Web API improvements
- Support for creating GDPR-compliant applications
Skill Level Intermediate
Use the exercise files3m 37s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
5. ASP.NET Core 2.1
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.