Skip to Main Content
ASP.NET MVC 4 in Action
book

ASP.NET MVC 4 in Action

by Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter
May 2012
Intermediate to advanced content levelIntermediate to advanced
440 pages
13h 54m
English
Manning Publications
Content preview from ASP.NET MVC 4 in Action

Chapter 12. Lightweight controllers

 

This chapter covers
  • Using lightweight controllers to simplify programming
  • Managing common view data without filter attributes
  • Deriving action results to apply common behavior
  • Using an application bus

 

In the previous chapter, we looked at using AutoMapper to carry some of the burden of the repetitive, manual labor associated with mapping view models. In this chapter, we’ll continue to investigate unburdening our controllers with simple refactoring and application architecture.

Do you remember those swollen and unwieldy Page_Load methods in Web Forms? Those methods can quickly grow out of control and stage a revolt against your codebase. Controller actions are dangerous too. Nestled snugly between the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming ASP.NET MVC 4

Programming ASP.NET MVC 4

Jess Chadwick, Todd Snyder, Hrusikesh Panda
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek
ASP.NET Core and Vue.js

ASP.NET Core and Vue.js

Devlin Basilan Duldulao

Publisher Resources

ISBN: 9781617290411Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link