If you are like any other coder, cutting and pasting snippets should put up a red flag in your mind. You will quickly hit this threshold when creating CRUD-services for MVC 4 applications over and over again. This lead me to create a repository pattern using generic types and base controller classes that I would like to share with you.
Using ASP.NET Web API for Sitefinity REST Services
Although you could implement your own RESTful WCF Service in Sitefinity, there is a gem Microsoft dropped into the MVC 4 Beta. I am referring to Web API: a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.”