public HttpResponseMessage DeleteProductById(Product productData) { string insertCheck = obj.DeleteProductById(productData); var response = Request.CreateResponse(HttpStatusCode.OK); response.Content = new StringContent(insertCheck, Encoding.UTF8, "application/json"); return(response); }