calling this method:
public HttpResponseMessage PostProduct(Product item) { item = repository.Add(item); var response = this.Request.CreateResponse&l
CreateResponse is an extension method defined in System.Net.Http namespace. Make sure to add a reference to System.Net.Http and System.Net.Http.Formatting in your project and add a correct using directive:
System.Net.Http
System.Net.Http.Formatting
C#: using System.Net.Http;
using System.Net.Http;
VB: Import System.Net.Http
Import System.Net.Http