ActionResults action returns

Name Framework Behavior Producing Method
ContentResult Returns a string literal Content
EmptyResult No response
FileContentResult
FilePathResult
FileStreamResult
Return the contents of a file File
HttpUnauthorizedResult Returns an HTTP 403 status
JavaScriptResult Returns a script to execute JavaScript
JsonResult Returns a data in JSON format Json
RedirectResult Redirects the client to a new URL Redirect
RedirectToRouteResult Redirect to another action, or
another controller’s action
RedirectToRoute
RedirectToAction
ViewResult
PartialViewResult
Response is the responsibility
of a view engine
View/PartialView

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注