ActionResult and derived classes
ActionResult is the base return type of Action Method.
The following table shows the classes which are derived from ActionResult Class.
In some controller the general structure of Action method is as the following:
The following table shows the classes which are derived from ActionResult Class.
- ViewResult
- PartialViewResult
- RedirectResult
- RedirectToRouteResult
- ContentResult
- JsonResult
- JavaScriptResult
- FileResult
- FileContentResult
- FilePathResult
- FileStreamResult
- EmptyResult
- HttpNotFoundResult
- HttpUnauthorizedResult
- HttpStatusCodeResult
In some controller the general structure of Action method is as the following:
public ActionResult ActionMethodName() { return {new} SomeHelperMethodRelatedToDerivedClass(); }
Labels: ActionResult, Controller
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home