views:

372

answers:

2

What are all the methods that return an ActionResult in ASP.NET MVC as of right now (ie. RedirectToAction, etc.)

I haven't found a good documentation resource that lists this kind of stuff.

+13  A: 

Found from here

System.Web.Mvc.ActionResult
    System.Web.Mvc.ContentResult
    System.Web.Mvc.EmptyResult
    System.Web.Mvc.FileResult
    System.Web.Mvc.HttpUnauthorizedResult
    System.Web.Mvc.JavaScriptResult
    System.Web.Mvc.JsonResult
    System.Web.Mvc.RedirectResult
    System.Web.Mvc.RedirectToRouteResult
    System.Web.Mvc.ViewResultBase

Methods on the controller object are here

There is:

Content
File
Javascript
Json
PartialView
Redirect
RedirectToAction
RedirectToRoute
View
Cipher