Returning ActionResult<T>
ActionResult<T> lets an action return either its data or a status code result, such as NotFound(). Return the item to answer 200 with it, or a helper such as NotFound(), BadRequest() or Conflict() to answer with that status instead.
Updated

- Category
- ASP.NET Core
- Level
- Journeyman
- Tags
- 409 Conflict, ActionResult<T>, aspnet-core, IActionResult, rest-api