I'm sending an array of the angular js to the controller of C # , and I'm handling it with stringfy for json in>.
In my method POST
it does not receive anything, it simply returns null
C # code
public void Post(string values)
{
var r = values;
}
Javascript Code
$scope.SubmitData = function (DataToSubmit) {
var string = JSON.stringify(DataToSubmit);
$http({
method: 'POST',
data: {
values: string,
},
url: 'api/aulamethod',
});
}
Date inserted into inserts
Datathatappearsinvarstring
afterstringfy
values:"[{"CompanyName":"column a","SupplierCode":"column b","DocumentNumber":"column c","Reference":"column d","InternalCurrencyValue":"column e","BlockadeUnblocking1":"column f","Justification":"column g","Request":"column h","$$hashKey":"object:23"}]"