Must ASP.NET MVC Controller Methods Return ActionResult?

You can absolutely use specific return types, even though most examples on the web seems to return the ActionResult . The only time I would return the ActionResult class is when different paths of the action method returns different subtypes.

Always return the most accurate type you can return. So you should return a ViewResult when the action always shows a view. I would only user action result when you return in ViewResult in some cases (invalid posted data) or a redirectToRouteResult in other cases.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions