Update action-results.md (#3701)
parent
af72b3d973
commit
3eb0b09fe1
|
@ -69,7 +69,7 @@ Web API uses the Accept header in the request to choose the formatter. For more
|
||||||
|
|
||||||
## IHttpActionResult
|
## IHttpActionResult
|
||||||
|
|
||||||
The **IHttpActionResult** interface was introducted in Web API 2. Essentially, it defines an **HttpResponseMessage** factory. Here are some advantages of using the **IHttpActionResult** interface:
|
The **IHttpActionResult** interface was introduced in Web API 2. Essentially, it defines an **HttpResponseMessage** factory. Here are some advantages of using the **IHttpActionResult** interface:
|
||||||
|
|
||||||
- Simplifies [unit testing](../testing-and-debugging/unit-testing-controllers-in-web-api.md) your controllers.
|
- Simplifies [unit testing](../testing-and-debugging/unit-testing-controllers-in-web-api.md) your controllers.
|
||||||
- Moves common logic for creating HTTP responses into separate classes.
|
- Moves common logic for creating HTTP responses into separate classes.
|
||||||
|
|
Loading…
Reference in New Issue