MVC Controllers

Web Result

ActionResult

Web Return

return RedirectToAction("ActionName", "ControllerName", new { id = vwModel.SomeId });
return View("ViewName", vwModel);
return PartialView("_PartialViewName", vwModel);

Web API Result

HttpResponseMessage

Web API Return

return Request.CreateResponse(HttpStatusCode.OK, anyObject);

Leave a Reply