Types of Action Result in MVC
ActionResult Helper Method Description ViewResult View Renders a view as a web page PartialViewResult PartialView Section of a view,that can be rendered inside another view RedirectResult Redirect Redirect to another action method RedirectToRouteResult RedirectToRoute Redirect to another action method ContentResult Content Returns a user-defined content type JsonResult Json Retuns a serialized JSON object JavaScriptResult JavaScript Returns a script that can be executed on the client FileResult File Returns a binary output to write to the response EmptyResult (None) returns a null result public ActionResult About() { return View(); } public class SampleController : Controller { // // GET: /Sample/ public ActionResult Index() { return Content( " Hello from Index action in Sample Controller" ); } public ActionResult Verify( string username = " all" ) { return Content( " Hello from Ve...