The following simple insert record method works in Postman but I can not get it to work in my AngularJS controller.
Postman Headers (Post) Key ContactID Value 0 Key FName Value John Key LName Value Smith Key Cache-Control Value no-cache Key Content-Type Value application/x-www-form-urlencoded
$scope.insert = function () {
var obj = { "ContactID": 0, "FName": "John", "LName": "Smith" };
var url = "http://********************.net/api/create";
$http({
method: 'POST',
url: url,
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
dataType: 'json',
contentType: 'application/json',
data: obj
});
}