Controller actions returns the ActionResult and it's possible to return kinds of results based on what we want in the output , let’s consider for types of result in by example in this article.
ActionResult: it just Initializes a new instance of the ActionResult class. ActionResult is the base class for other types of action.
- //Action Result
- public ActionResult Index()