Implementing resource oriented controllers in ASP.NET MVC

Posted by: Pablo M. Cibraro (aka Cibrax), on 25 Jan 2012 | View original | Bookmarked: 0 time(s)

One common problem with the naming convention and default routing mechanism in ASP.NET MVC is that we tend to group actions in a controller for sharing an URL space.  This basically leads to complex controllers with a lot of unrelated methods that break the SOLID principles.  Too many responsibilities in a simple class affects maintainability in the long run and causes secondary effects that complicates unit testing. For example, we usually end up with class constructors that receives too...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 292 | Hits: 45

Similar Posts

  • MvcContrib working on Portable Areas more
  • Resx and BAML Resources in WPF more
  • Resource Files and ASP.NET MVC Projects more
  • WebResource access in ASP.NET MVC more
  • Resource Files and ASP.NET MVC Projects more
  • Mvc Contrib Version 1.0 preparation / project restructuring more
  • IUpdateable for Linq To Sql more
  • MvcContrib now offers four (4) alternative view engines for ASP.NET MVC more
  • The Emergence of Choice in the .NET Ecosystem more
  • Resource Unloading in a custom ASP.NET Localization Resource Provider more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD