Build truly RESTful API and website using same ASP.NET MVC code

Usually we create separate controllers or WCF service layer to deal with API part of the website but I will show you how you can create both RESTful website and API using the same controller code working over the exact same URL.

C# (507.4 KB)
 
 
 
 
 
(5)
7,206 times
Add to favorites
7/29/2011
E-mail Twitter del.icio.us Digg Facebook