I am facing an issue where sending null from AngularJS/JavaScript to my C# controller does not actually set the field as null. How can I properly set a field as null from JavaScript?
$scope.formData.currentTempDocument = null
return $http({
method: 'POST',
url: rootURL + '/data/getdata',
data: inputjsondata,
dataType: 'text',
processData: false,
async: false,
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
}).then(function (response) {
return response.data.EntityData;
});