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. Steven Sanderson also recommends returning specific types in his book Pro ASP.NET MVC Framework. Take a … Read more

Disable Session state per-request in ASP.Net MVC

If anyone is in the situation I was in, where your image controller actually needs read only access to the session, you can put the SessionState attribute on your controller [SessionState(SessionStateBehavior.ReadOnly)] See http://msdn.microsoft.com/en-us/library/system.web.mvc.sessionstateattribute.aspx for more info. Thanks to https://stackoverflow.com/a/4235006/372926