Download pptx - ASP.NET MVC and MVP

Transcript
Page 1: ASP.NET MVC and MVP

ASP.NET MVC AND MVPA Comparison of

Page 2: ASP.NET MVC and MVP

WHY USE AN ARCHITECTURAL PATTERN?

Separation of Concerns Responsibilities Testability

Page 3: ASP.NET MVC and MVP

MODEL – VIEW – *

View Display Information

Controller/Presenter Get data from the Model Send it to View for display

Model Everything else

Page 4: ASP.NET MVC and MVP

MODEL – VIEW – CONTROLLER

View

Controller Model

Page 5: ASP.NET MVC and MVP

MODEL – VIEW – PRESENTER

Model

View

Presenter

Page 6: ASP.NET MVC and MVP

ASP.NET MVP (PASSIVE VIEW)

DEMO

Page 7: ASP.NET MVC and MVP

RESOURCES

Model-View-Presenter http://msdn.microsoft.com/en-us/magazine/

cc188690.aspx http://www.pnpguidance.net/Post/

UnityIoCDependencyInjectionASPNETModelViewPresenter.aspx

Model-View-Controller http://haacked.com/ http://jeffreypalermo.com/

Page 8: ASP.NET MVC and MVP

THANK YOU

Twitter: @leebrandt Email: [email protected] Blog: www.codebucket.org


Recommended