Chapter 10: Controllers and Routing

Learning Objectives

  1. Understand the basic architecture of an MVC web application
  2. Build an ASP.NET application that can handle various types of requests

Key Terminology

Simple Controllers

  1. route
  2. Controllers
  3. endpoint
  4. routing
  5. conventional routing
  6. attribute routing
  7. action method
  8. attribute
  9. [HttpGet]
  10. [HttpPost]
  11. [Route("path")]
  12. IActionResult

Controllers with Parameters

  1. query string

Cleaning Up Your Controllers

  1. attribute routing
  2. attributes