I'm just starting to read up on the new MVC4 WebAPI. This question may be pretty basic but it will resolve my confusion.
Suppose you want to create an MVC site that would also follow REST architecture.
Following this tutorial, when creating a page that would display a list of products would I need to create two controllers => one for regular website (that would derive from "Controller") and another for serving requests via API that would derive from "API controller"?. This seems like a lot of redundancy.
Would you then have only 1 view (website)? and another that would only return (for example some JSON result - WebAPI) ?
EDIT:
what is the standard way of creating ViewModels?. I assume the same view model can be used for both controllers. correct?