3

MVC project what is the difference between

PartialViewResult

ActionResult

ViewResult

classes?

can anyone post brief introduction link?

Neo
  • 14,469
  • 52
  • 188
  • 369

2 Answers2

8
  • ActionResult - an abstract class that all actions in an ASP.NET MVC application should return a concrete instance of.
  • ViewResult - an implementation of ActionResult that is used to render a view using the specified view engine
  • PartialViewResult - an implementation of ActionResult that is used to render a partial view (without a layout) using the specified view engine
Darin Dimitrov
  • 994,864
  • 265
  • 3,241
  • 2,902
1

Here are some resources to get you started:

The MSDN documentation for the ActionResult class can be viewed here.

ActionResult types in MVC2 is a good introduction.

ASP.NET MVC ActionResults explained is some more information.

What's the point of ActionResult return type? link refers to another Stack Overflow post.

Difference Between ViewResult() and ActionResult() is another.

Community
  • 1
  • 1
Benjamin Gale
  • 12,667
  • 6
  • 60
  • 99