The document discusses ASP.NET MVC and REST. It provides an overview of ASP.NET MVC concepts like MVC patterns, strong typing, routing and actions. It then contrasts ASP.NET MVC with traditional Web Forms approaches. The document also defines REST as a resource-oriented architectural style that relies on HTTP verbs and embraces the web standard. It shows how ASP.NET MVC supports RESTful principles and features like action attributes, filters and custom action results that help build RESTful services.
8. Büttenrede
Der ViewState is ne falsche Sache - Mir
wolle was ganz and'res mache!
Code-Behind mit 11 tausend Lines of
Code - Das ist doch der Maintenance-
Tod!
Post-Back und Controls im Web, dass
kannst'e doch nich' testen, Depp!
9. Concepts
• Nice URLs & Routing
• Process over „just add a Form“
• Loads of naming conventions
• Code, Code, Code
• As strongly typed as possible!
• Once build, forever used…
30. Action Filters
public class MyFilter
: ActionFilterAttribute
{
public override void OnActionExecuting(
ActionExecutingContext filterContext)
{
// Your code here…
}
}
31. Action Results
public class ModelResult<T>
: ActionResult
{
public override void ExecuteResult(
ControllerContext context)
{
var r = context.HttpContext.Response;
r.Write(…);
}
}
32. Summary
• ASP.NET MVC offers an alternative to
WCF WebHTTP features
– It's more Web
• Fully integrated into a web application
– It's less Services
• No other protocols
• No WSDL
• No Proxies