Action method,
1. View Method
Public ActionResult Index () {// full path return View ("~ /Areas/Admin/Views/Home/Index. cshtml ");}
ActionResult parsing: (abstract class) view result
Subclass:
System. web. mvc. contentResult: ContentResult Controller. content ("") Outputs a string to the user without Redundant text System. web. mvc. emptyResult: NULL content is returned. The Controller does not provide the method System. web. mvc. fileResult (abstract): returns a file for the verification code FileContentResult (subclass): Controller. file (new byte [], ""); e. g return new FileContentResult (new byte [1024], "image/jpeg"); FilePathResult (subclass): Controller. file ("", ""); e. g return new FilePathResult ("logo.jpg", "image/jpeg"); FileStreamResult (subclass): e. g return new FileStreamResult (new FileStream ("logo.jpg", FileMode. open), "image/jpeg") System. web. mvc. viewResult: