---
title: "How many types of results in MVC?"  
description: "How many types of results in MVC?"  
author: "Manoj Bhatt"  
published: 2016-02-07  
updated: 2016-02-07  
canonical: https://www.mindstick.com/forum/33962/how-many-types-of-results-in-mvc  
category: "asp.net"  
tags: ["c#", "asp.net", "asp.net mvc"]  
reading_time: 2 minutes  

---

# How many types of results in MVC?

Hi All,How many types of [results](https://yourviews.mindstick.com/story/4497/usage-of-baking-soda-magical-results) in [MVC](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc)? Can [anyone give me](https://answers.mindstick.com/qa/41194/can-anyone-give-me-some-high-and-low-points-of-each-of-the-four-first-presidential-administrations) a types of results in MVC with some elaboration.\
Thank you.

## Replies

### Reply by Anupam Mishra

There are many types of result in mvc. **ActionResult** is a base class of all result in mvc .In Below we are given result hierarchy:

```
System.Object  System.Web.Mvc.ActionResult    System.Web.Mvc.ContentResult    System.Web.Mvc.EmptyResult    System.Web.Mvc.FileResult    System.Web.Mvc.HttpStatusCodeResult    System.Web.Mvc.JavaScriptResult    System.Web.Mvc.JsonResult    System.Web.Mvc.RedirectResult    System.Web.Mvc.RedirectToRouteResult    System.Web.Mvc.ViewResultBase
```

\
Here some of types of result in given below:\
**ActionResult:** Action methods typically return a result that is known as an action result. The ActionResult class is the base class for all action results. we are decide which type of action result to return based on the task that the action method is performing. **\****ContentResult:** Represents a user-defined content type that is the result of an action method.\
**EmptyResult:** Represents a result that does nothing, such as a controller action method that returns nothing.\
**FileResult:** Represents a base class that is used to send binary file content to the response.\
**HttpStatusCodeResult:** Provides a way to return an action result with a specific HTTP response status code and description.\
**JavaScriptResult:** Sends JavaScript content to the response.\
**JsonResult:** Represents a class that is used to send JSON-formatted content to the response.\
**RedirectResult:** Controls the processing of application actions by redirecting to a specified URI.**\****RedirectToRouteResult:** Represents a result that performs a redirection by using the specified route values dictionary.\
**ViewResultBase:** Represents a base class that is used to provide the model to the view and then render the view to the response.\
\
\


---

Original Source: https://www.mindstick.com/forum/33962/how-many-types-of-results-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
