7. Every web application needs some structure
MVC helps you to stay organized
Often end up with less code, not more
Smoother learning curve as your project growsmplicated,
What’s the point?
Seems complicated, What's the point?
8. Unit testing helps you change code with confidence
ASP.NET MVC is designed to make unit test easy
Testability
9. A controller is just a class
No really it is just a class :D
Controller
13. ActionResult
Name Framework behivor Method Name
ContentResult Returns a string literal Content
JavaScriptResult Returns a script to execute Javascript
JSONResult Returns data in json json
RedirectResult Redirects the client to a new
URL
Redirect
ViewResult Response is the responsibility
of a view
View / ParialView
24. Actions Verbs
Get data form the server.
Post data to the server.
Update data on the server.
Delete data from the server.
[HttpPost]
[HttpGet]
[HttpPut]
[HttpDelete]