We divide ASP.NET MVC action method into 3 types
1)Action Methods which returns View result class object.
2)Action Methods which returns not View result class object.
3)NonAction Methods which returns not View result class object.
Action Methods which returns View result class object:
=> In general action methods have the return type is ActionResult.
=> if AM's(action methods) having the return statement with view() method it means it returns "view result" class object those methods we categorized into "Action Methods which returns View result class object"
Action Methods which returns not View result class object:
=> Some of AM's will return JSON, any class objects, or simple string these are categorized into type AM's, These AM's generally not return view result class object and it does not have return view() method.
NonAction Methods which returns not View result class object:
=> AM's which not accessible by browser those are called NonAction Methods, Here we used to write logic which we want to keep private(nothing but these are private methods)
Important Note: ActionResult is the bass class and viewresult,content,JSON class are child classes for ActionResult.
Thanks®ards,
G.Dinesh @ BeetlerimTechnologies,madhapur,hyd.
working since june 2014 as a dotnet developer.
9966137229.