ASP.NET MVC ActionResult

ViewResult

public ActionResult Index()
{
  return View();
}
↓ と同じ
ViewResult vr = new ViewResult();
vr.ViewBag.Msg = "aaa";
return vr;

PartialViewResult

メソッド:PartialView()

RedirectResult

public ActionResult Index()
{
  return Redirect("http://www.~");
  ※return Redirect("~/Next/Index"); も可
}
↓ と同じ
RedirectResult rr = new RedirectResult(url:"http://www.~");
return rr;

RedirectToRouteResult

return RedirectToAction(
  actionName: "Index",
  controllerName: "Next",
  routeValues: new { id = "1", charset = "utf8" }
  );
return RedirectToRoute(
  routeName: "Default",
  routeValues: new {
    contoroller = "Next",
    action = "Index",
    id = "1",
    charset = "utf8"
  }
);

ContentResult

メソッド:Content()

FilePathResult

メソッド:File()