var url = "ProductBatch/ProcessBatchBarcodeString";
var jstring = JSON.stringify(barcodeText);
$.ajax({
type: "POST",
url: url,
contentType: "application/json; charset=utf-8",
dataType: "json",
data: jstring,
success: function (data) {
if (data) {
alert('test');
}
else {
alert('test2');
}
},
error: function (xhr, textStatus, errorThrown) {