|
Answer» ASP.NET Core has MANY DIFFERENT types of IActionResult: - ViewResult—Generates an HTML view.
- RedirectResult—Sends a 302 HTTP redirect response to send a user to a SPECIFIED URL automatically.
- RedirectToRouteResult—Sends a 302 HTTP redirect response to automatically send a user to another page, where the URL is defined using routing.
- FileResult—Returns a file as the response.
- ContentResult—Returns a provided string as the response.
- StatusCodeResult—Sends a raw HTTP status code as the response, optionally with associated response BODY content.
- NotFoundResult—Sends a raw 404 HTTP status code as the response.
|