O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining a Model

Chapter 17 presented the ASP.NET MVC application. Recall that, in this pattern, there is a Model that represents your business objects and their persistence layer. The Controller is used to manage requests and response from the HTTP traffic to your site. Views, of course, allow you to render a user interface (UI) to the user. The ASP.NET Web API service model leverages this same pattern. You define models for your data and a controller for handling service requests and response. (There is no real UI, of course, and hence no views.)

The framework for the ASP.NET Web API handles the plumbing of turning your model objects into serialized data that can be embedded in the HTTP response message. This serialization is typically JSON ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required