hi ashish,

In terms of syntax both are different. You need to write it again only logic within the OperationContact method can be copied to API method


http://www.codeproject.com/Articles/549152/Introduction-to-ASP-NET-Web-API