Search code examples
asp.net-mvcasp.net-mvc-3virtualactionresultcontroller-actions

Should I make my ASP.NET MVC controller actions virtual?


File -> New Project for ASP.NET MVC projects used to generate controllers with virtual actions. I'm not sure if that stopped with MVC 2 or MVC 3, but is this no longer a best practice?


Solution

  • T4MVC Does make action methods virtual. If you are using it, it should make action methods virtual, no other way it can work